From 8143866112fe7a8260212df9e2d1e94b7d555f95 Mon Sep 17 00:00:00 2001 From: Bogdan-Andrei Iancu Date: Fri, 22 Nov 2013 20:46:40 +0200 Subject: [PATCH] Fixed bogus warning because of variables not being reset. Reported by Jeff Pyle, part of fixing issue #126. --- modules/uac/auth.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/uac/auth.c b/modules/uac/auth.c index 4c1ea3975b8..8b18fb70a1e 100644 --- a/modules/uac/auth.c +++ b/modules/uac/auth.c @@ -220,9 +220,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;