Browse code

libkcore: set pid attribute for fake msg

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
 }