소스 검색

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)
Juha Heinanen 14 년 전
부모
커밋
e80ca150ec
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      modules/lcr/lcr_mod.c

+ 1 - 1
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 {