Module: sip-router
Branch: 3.3
Commit: f0203464ddc1e6f4b90d8d8d2bf0ff953760ba6c
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f020346…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: Fri Nov 1 15:33:08 2013 +0100
registrar: clean static values at pack_ci
- backport from master 66185905850cd2ac9ab933776184da0f0882e5ac
---
modules_k/registrar/save.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules_k/registrar/save.c b/modules_k/registrar/save.c
index 9b0607a..0ec80f4 100644
--- a/modules_k/registrar/save.c
+++ b/modules_k/registrar/save.c
@@ -300,6 +300,9 @@ static inline ucontact_info_t* pack_ci( struct sip_msg* _m, contact_t*
_c,
received_found = 0; /* not found yet */
m = _m; /* remember the message */
}
+ else {
+ memset( &ci.instance, 0, sizeof(str));
+ }
if(_c!=0) {
/* hook uri address - should be more than 'sip:' chars */