Module: sip-router
Branch: 3.2
Commit: addbd17723585197ea41c58904be1c4b6be2fe7d
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=addbd17…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Nov 18 00:10:26 2011 +0100
libkcore: set pid attribute for fake msg
(cherry picked from commit 950b1e52ed8a94462be17e206d6970fd13a41661)
---
lib/kcore/faked_msg.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/lib/kcore/faked_msg.c b/lib/kcore/faked_msg.c
index 9a51723..efaba59 100644
--- a/lib/kcore/faked_msg.c
+++ b/lib/kcore/faked_msg.c
@@ -58,7 +58,8 @@ int faked_msg_init(void)
struct sip_msg* faked_msg_next(void)
{
- _faked_msg.id=_faked_msg_no++;
+ _faked_msg.id = 1 + _faked_msg_no++;
+ _faked_msg.pid = my_pid();
clear_branches();
return &_faked_msg;
}