Skip to content

Commit

Permalink
Fix SCTP proto dection in TM module.
Browse files Browse the repository at this point in the history
Credits go to @jamesabravo on GITHUB
Closes #413 .

(cherry picked from commit 5c3b2a6)
  • Loading branch information
bogdan-iancu committed Feb 22, 2015
1 parent 9b8b130 commit 3eb6f5e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/tm/ut.h
Expand Up @@ -63,6 +63,9 @@ inline static enum sip_protos get_proto(enum sip_protos force_proto,
#endif
#ifdef USE_TLS
case PROTO_TLS:
#endif
#ifdef USE_SCTP
case PROTO_SCTP:
#endif
return proto;
default:
Expand All @@ -75,6 +78,9 @@ inline static enum sip_protos get_proto(enum sip_protos force_proto,
#endif
#ifdef USE_TLS
case PROTO_TLS:
#endif
#ifdef USE_SCTP
case PROTO_SCTP:
#endif
return force_proto;
default:
Expand Down

0 comments on commit 3eb6f5e

Please sign in to comment.