Browse code

libkcore: set pid attribute for fake msg (cherry picked from commit 950b1e52ed8a94462be17e206d6970fd13a41661) (cherry picked from commit addbd17723585197ea41c58904be1c4b6be2fe7d)

Daniel-Constantin Mierla authored on 17/11/2011 23:10:26
Showing 1 changed files
... ...
@@ -58,7 +58,8 @@ int faked_msg_init(void)
58 58
 
59 59
 struct sip_msg* faked_msg_next(void)
60 60
 {
61
-	_faked_msg.id=_faked_msg_no++;
61
+	_faked_msg.id = 1 + _faked_msg_no++;
62
+	_faked_msg.pid = my_pid();
62 63
 	clear_branches();
63 64
 	return &_faked_msg;
64 65
 }