소스 검색

core:parser fix possible bug in msg_parser

If buffer was NULL, tmp was returned uninitialized, thus possible to cause problems
(cherry picked from commit cccdaead04411175c46dd660c91c037c45f80c33)
Marius Zbihlei 13 년 전
부모
커밋
f5df3a2509
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      parser/msg_parser.c

+ 1 - 1
parser/msg_parser.c

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