|
@@ -328,7 +328,10 @@ int verify_source(struct sip_msg* _msg, char* s1, char* s2)
|
|
}
|
|
}
|
|
|
|
|
|
/* Add P-Request-Hash header body */
|
|
/* Add P-Request-Hash header body */
|
|
- parse_headers(_msg, HDR_EOH_F, 0);
|
|
|
|
|
|
+ if(parse_headers(_msg, HDR_EOH_F, 0)<0) {
|
|
|
|
+ LM_ERR("failed to parse headers\n");
|
|
|
|
+ return -1;
|
|
|
|
+ }
|
|
for (hf = _msg->headers; hf; hf = hf->next) {
|
|
for (hf = _msg->headers; hf; hf = hf->next) {
|
|
if(cmp_hdrname_strzn(&hf->name, "P-Request-Hash",
|
|
if(cmp_hdrname_strzn(&hf->name, "P-Request-Hash",
|
|
sizeof("P-Request-Hash") - 1) == 0)
|
|
sizeof("P-Request-Hash") - 1) == 0)
|