Skip to content

Commit

Permalink
Do not free the header string as it is part of the lumps (and freed t…
Browse files Browse the repository at this point in the history
…ogether with the lumps).

Reported by Jeff Pyle.
Fixing bug #126
  • Loading branch information
bogdan-iancu committed Nov 20, 2013
1 parent 9d6b75f commit e3afb35
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions modules/uac/auth.c
Expand Up @@ -220,15 +220,9 @@ int uac_auth( struct sip_msg *msg)
{
LM_ERR("failed to apply changes\n");
pkg_free(new_hdr->s);
new_hdr->s = NULL; new_hdr->len = 0;
goto error;
}

pkg_free(new_hdr->s);
new_hdr->s = NULL; new_hdr->len = 0;
/* increas the Cseq nr */


return 0;
error:
return -1;
Expand Down

0 comments on commit e3afb35

Please sign in to comment.