Browse code

core: added missing field in sip_msg_update_buffer

- added a missing field in sip_msg_update_buffer()
when restoring message fiedls: msg->pid.

(cherry picked from commit 57be5c1f33344275c15777a7927d9c48df4a69ba)

Aleksandar Yosifov authored on 09/11/2020 12:37:26 • Daniel-Constantin Mierla committed on 19/11/2020 12:27:38
Showing 1 changed files
... ...
@@ -3276,6 +3276,7 @@ int sip_msg_update_buffer(sip_msg_t *msg, str *obuf)
3276 3276
 	/* restore msg fields */
3277 3277
 	msg->buf = tmp.buf;
3278 3278
 	msg->id = tmp.id;
3279
+	msg->pid = tmp.pid;
3279 3280
 	msg->rcv = tmp.rcv;
3280 3281
 	msg->set_global_address = tmp.set_global_address;
3281 3282
 	msg->set_global_port = tmp.set_global_port;