From 9a3b5d8c017f4de6a647184b0a1c464de9671b74 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Wed, 14 Oct 2020 20:17:20 +0200 Subject: [PATCH] core: fixed use of flags-based protocol detection - wrong field was used due to c&p --- src/core/parser/msg_parser.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/parser/msg_parser.h b/src/core/parser/msg_parser.h index 1abc042e289..61d9ac6185b 100644 --- a/src/core/parser/msg_parser.h +++ b/src/core/parser/msg_parser.h @@ -145,22 +145,22 @@ if ( (*tmp==(firstchar) || *tmp==((firstchar) | 32)) && \ /* sip request */ #define IS_SIP(req) \ (((req)->first_line.type == SIP_REQUEST) && \ - ((req)->first_line.type & FLINE_FLAG_PROTO_SIP)) + ((req)->first_line.flags & FLINE_FLAG_PROTO_SIP)) /* sip reply */ #define IS_SIP_REPLY(rpl) \ (((rpl)->first_line.type == SIP_REPLY) && \ - ((rpl)->first_line.type & FLINE_FLAG_PROTO_SIP)) + ((rpl)->first_line.flags & FLINE_FLAG_PROTO_SIP)) /* http request */ #define IS_HTTP(req) \ (((req)->first_line.type == SIP_REQUEST) && \ - ((req)->first_line.type & FLINE_FLAG_PROTO_HTTP)) + ((req)->first_line.flags & FLINE_FLAG_PROTO_HTTP)) /* http reply */ #define IS_HTTP_REPLY(rpl) \ (((rpl)->first_line.type == SIP_REPLY) && \ - ((rpl)->first_line.type & FLINE_FLAG_PROTO_HTTP)) + ((rpl)->first_line.flags & FLINE_FLAG_PROTO_HTTP)) /*! \brief * Return a URI to which the message should be really sent (not what should