Browse code

core: sip_msg_shm_clone: clone parsed maxforwards value in shm

maxfwd module modified the msg buf directly instead of adding a lump. In
addition it is filling the parsed value of the header field.

Clone this field into shm so later code can at least determine if the msg
has been mangled so it can retreive the original value of the header.

Alex Hermann authored on 19/08/2014 10:36:23
Showing 1 changed files
... ...
@@ -743,6 +743,7 @@ struct sip_msg*  sip_msg_shm_clone( struct sip_msg *org_msg, int *sip_msg_len,
743 743
 		case HDR_MAXFORWARDS_T:
744 744
 			if (!HOOK_SET(maxforwards)) {
745 745
 				new_msg->maxforwards = new_hdr;
746
+				new_msg->maxforwards->parsed = hdr->parsed;
746 747
 			}
747 748
 			break;
748 749
 		case HDR_ROUTE_T: