[sr-dev] git:master: registrar: clean static values at pack_ci
Victor Seva
linuxmaniac at torreviejawireless.org
Fri Nov 1 16:05:50 CET 2013
Module: sip-router
Branch: master
Commit: 66185905850cd2ac9ab933776184da0f0882e5ac
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=66185905850cd2ac9ab933776184da0f0882e5ac
Author: Victor Seva <linuxmaniac at torreviejawireless.org>
Committer: Victor Seva <linuxmaniac at torreviejawireless.org>
Date: Fri Nov 1 15:33:08 2013 +0100
registrar: clean static values at pack_ci
---
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 5cc4627..bc816cd 100644
--- a/modules/registrar/save.c
+++ b/modules/registrar/save.c
@@ -328,6 +328,9 @@ static inline ucontact_info_t* pack_ci( struct sip_msg* _m, contact_t* _c, unsig
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 */
More information about the sr-dev
mailing list