瀏覽代碼

registrar: clean static values at pack_ci

Victor Seva 12 年之前
父節點
當前提交
6618590585
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      modules/registrar/save.c

+ 3 - 0
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 */