From f5c1382fdf98777e1ad1d235366afa5d7334f0a2 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Fri, 20 Apr 2001 21:10:36 +0000 Subject: [PATCH] Don't leak memory when failing to parse an rdata in the prereq section. --- bin/nsupdate/nsupdate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/nsupdate/nsupdate.c b/bin/nsupdate/nsupdate.c index 6cfc0d8ad3..d7df8aa331 100644 --- a/bin/nsupdate/nsupdate.c +++ b/bin/nsupdate/nsupdate.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: nsupdate.c,v 1.92 2001/04/16 17:09:00 gson Exp $ */ +/* $Id: nsupdate.c,v 1.93 2001/04/20 21:10:36 bwelling Exp $ */ #include @@ -848,7 +848,7 @@ make_prereq(char *cmdline, isc_boolean_t ispositive, isc_boolean_t isrrset) { retval = parse_rdata(&cmdline, rdataclass, rdatatype, updatemsg, rdata); if (retval != STATUS_MORE) - return (retval); + goto failure; } result = dns_message_gettemprdatalist(updatemsg, &rdatalist);