Module: sip-router
Branch: master
Commit: a708dcb5ad90ec517db481fea0570ec53863b471
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a708dcb…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Wed Nov 21 17:22:31 2012 +0100
lib/kcore: reset time value for faked msg
- reported by Uri Shacked
---
lib/kcore/faked_msg.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/lib/kcore/faked_msg.c b/lib/kcore/faked_msg.c
index 32b3201..d486547 100644
--- a/lib/kcore/faked_msg.c
+++ b/lib/kcore/faked_msg.c
@@ -71,6 +71,7 @@ struct sip_msg* faked_msg_next(void)
{
_faked_msg.id = 1 + _faked_msg_no++;
_faked_msg.pid = my_pid();
+ memset(&_faked_msg.tval, 0, sizeof(struct timeval));
clear_branches();
return &_faked_msg;
}