Browse Source

modules_s/register Prevented crash in case of incorrect uri

Error logic performed a free_params on an garbage value (not initialized)
Reported by clang & llvm
Marius Zbihlei 14 years ago
parent
commit
302d55cab2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules_s/registrar/save.c

+ 1 - 1
modules_s/registrar/save.c

@@ -281,7 +281,7 @@ int parse_uri_dstip(str* received, struct ip_addr* ip, unsigned short* port,
 	struct sip_uri puri;
 	struct sip_uri puri;
 	param_hooks_t hooks;
 	param_hooks_t hooks;
 	struct ip_addr* p;
 	struct ip_addr* p;
-	param_t* params;
+	param_t* params = 0;
 	int error;
 	int error;
 
 
 	if (unlikely(!received)) return 0;
 	if (unlikely(!received)) return 0;