Module: sip-router
Branch: 4.0
Commit: 24cb002f5af4cdbf6a54e8abf4bf31e311aff4cf
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=24cb002…
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
(cherry picked from commit 66185905850cd2ac9ab933776184da0f0882e5ac)
---
modules/registrar/save.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/registrar/save.c b/modules/registrar/save.c
index cd637c3..8aaf912 100644
--- a/modules/registrar/save.c
+++ b/modules/registrar/save.c
@@ -301,6 +301,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 */