Browse Source

modules/lcr: fixed adding of ;transport parameter

Juha Heinanen 14 years ago
parent
commit
c3981251a2
1 changed files with 6 additions and 2 deletions
  1. 6 2
      modules/lcr/lcr_mod.c

+ 6 - 2
modules/lcr/lcr_mod.c

@@ -1633,10 +1633,14 @@ inline int decode_avp_value(char *value, unsigned int *gw_index, str *scheme,
     case PROTO_TLS:
 	transport->s = ";transport=tls";
 	transport->len = 14;
-    default:
+	break;
+    case PROTO_SCTP:
 	transport->s = ";transport=sctp";
 	transport->len = 15;
 	break;
+    default:
+	LM_ERR("unknown transport '%d'\n", u);
+	return 0;
     }
     /* flags */
     s.s = sep + 1;
@@ -2192,7 +2196,7 @@ static int from_gw_1(struct sip_msg* _m, char* _lcr_id, char* _s2)
 	return -1;
     }
 
-    /* Get source address and transport preotocol */
+    /* Get source address and transport protocol */
     src_addr = _m->rcv.src_ip.u.addr32[0];
     transport = _m->rcv.proto;