From 7c96935552e0f890745aec8af9ca035f0361e8f2 Mon Sep 17 00:00:00 2001 From: Robert James Kaes Date: Mon, 14 Jul 2003 17:42:43 +0000 Subject: (indicate_http_error): Added calls to va_end() before leaving the function. --- src/htmlerror.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/htmlerror.c b/src/htmlerror.c index c0eeb86..c8d67a5 100644 --- a/src/htmlerror.c +++ b/src/htmlerror.c @@ -1,4 +1,4 @@ -/* $Id: htmlerror.c,v 1.5 2003-05-31 23:02:21 rjkaes Exp $ +/* $Id: htmlerror.c,v 1.6 2003-07-14 17:42:43 rjkaes Exp $ * * This file contains source code for the handling and display of * HTML error pages with variable substitution. @@ -260,12 +260,16 @@ indicate_http_error(struct conn_s* connptr, int number, char *message, ...) while((key = va_arg(ap, char *))) { val = va_arg(ap, char *); - if(add_error_variable(connptr, key, val) == -1) + if(add_error_variable(connptr, key, val) == -1) { + va_end(ap); return(-1); + } } connptr->error_number = number; connptr->error_string = safestrdup(message); + va_end(ap); + return(add_standard_vars(connptr)); } -- cgit v1.2.3