If buffer was NULL, tmp was returned uninitialized, thus possible to cause problems (cherry picked from commit cccdaead04411175c46dd660c91c037c45f80c33)
@@ -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;