Skip to content

Commit

Permalink
core: fixed use of flags-based protocol detection
Browse files Browse the repository at this point in the history
- wrong field was used due to c&p
  • Loading branch information
miconda committed Oct 14, 2020
1 parent e3e6471 commit 9a3b5d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/parser/msg_parser.h
Expand Up @@ -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
Expand Down

0 comments on commit 9a3b5d8

Please sign in to comment.