[sr-dev] git:3.2: modules/lcr: fixed testing of transport protocol by to_gw functions
Juha Heinanen
jh at tutpro.com
Thu Dec 1 11:07:23 CET 2011
Module: sip-router
Branch: 3.2
Commit: e80ca150ece624be1faf6abadf1ee692b6ee1b19
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e80ca150ece624be1faf6abadf1ee692b6ee1b19
Author: Juha Heinanen <jh at tutpro.com>
Committer: Juha Heinanen <jh at tutpro.com>
Date: Thu Dec 1 12:00:32 2011 +0200
modules/lcr: fixed testing of transport protocol by to_gw functions
- Test failed when transport protocol is taken from Request-URI and
there is not any.
(cherry picked from commit 5cd8e582f833243884fa4daf891d24c4c0dcf1f9)
---
modules/lcr/lcr_mod.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/lcr/lcr_mod.c b/modules/lcr/lcr_mod.c
index 790c1e8..dac5c7d 100644
--- a/modules/lcr/lcr_mod.c
+++ b/modules/lcr/lcr_mod.c
@@ -2320,7 +2320,7 @@ static int do_to_gw(struct sip_msg* _m, unsigned int lcr_id,
/* Return result */
if ((res != NULL) &&
((res->transport == transport) ||
- ((res->transport == PROTO_NONE) && (transport == PROTO_UDP)))) {
+ ((transport == PROTO_NONE) && (res->transport == PROTO_UDP)))) {
LM_DBG("request goes to gw\n");
return 1;
} else {
More information about the sr-dev
mailing list