فهرست منبع

registrar(k): reset local contact holder

- when an UA fetches the bindings for a user and the user isn't
  registered, properly return an empty contact.
- closes SF#3035778, patch by Alex Hermann
Daniel-Constantin Mierla 15 سال پیش
والد
کامیت
776d941bef
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      modules_k/registrar/save.c

+ 2 - 0
modules_k/registrar/save.c

@@ -457,6 +457,8 @@ static inline int insert_contacts(struct sip_msg* _m, contact_t* _c,
 		if (r->contacts)
 			build_contact(r->contacts);
 		ul.release_urecord(r);
+	} else { /* No contacts found */
+		build_contact(NULL);
 	}
 
 #ifdef USE_TCP