Skip to content

Commit

Permalink
mid_registrar: Fix possible de-registration crash
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuchircu committed Dec 5, 2016
1 parent 3d05885 commit de9154c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/mid_registrar/save.c
Expand Up @@ -1091,9 +1091,9 @@ static inline int insert_rpl_contacts(struct sip_msg *req, struct sip_msg* rpl,
return -1;
}
}
c = NULL;

update_usrloc:
c = NULL;
/* pack the contact_info */
ci = pack_ci(req, __c, e, e_out, cflags, mri->flags);
if (ci == NULL) {
Expand Down Expand Up @@ -1327,9 +1327,9 @@ static inline int insert_req_contacts(struct sip_msg *req, struct sip_msg* rpl,
*/

LM_DBG(" >> REGISTER %ds ------- %ds 200 OK <<!\n", e, e_out);
c = NULL;

update_usrloc:
c = NULL;
/* pack the contact_info */
ci = pack_ci(req, __c, e, e_out, cflags, mri->flags);
if (ci == NULL) {
Expand Down

0 comments on commit de9154c

Please sign in to comment.