Przeglądaj źródła

core:parser fix possible bug in msg_parser

If buffer was NULL, tmp was returned uninitialized, thus possible to cause problems
Marius Zbihlei 13 lat temu
rodzic
commit
cccdaead04
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      parser/msg_parser.c

+ 1 - 1
parser/msg_parser.c

@@ -88,7 +88,7 @@ unsigned int global_req_flags = 0;
 char* get_hdr_field(char* const buf, char* const end, struct hdr_field* const hdr)
 {
 
-	char* tmp;
+	char *tmp = 0;
 	char *match;
 	struct via_body *vb;
 	struct cseq_body* cseq_b;