Skip to content

Commit

Permalink
Fixed bogus warning because of variables not being reset.
Browse files Browse the repository at this point in the history
Reported by Jeff Pyle, part of fixing issue #126.
  • Loading branch information
bogdan-iancu committed Nov 22, 2013
1 parent f456377 commit cfb8457
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/uac/auth.c
Expand Up @@ -180,9 +180,11 @@ 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;
}

new_hdr->s = NULL; new_hdr->len = 0;
return 0;
error:
return -1;
Expand Down

0 comments on commit cfb8457

Please sign in to comment.