diff options
author | Robert James Kaes <rjkaes@users.sourceforge.net> | 2003-07-14 17:42:43 +0000 |
---|---|---|
committer | Robert James Kaes <rjkaes@users.sourceforge.net> | 2003-07-14 17:42:43 +0000 |
commit | 7c96935552e0f890745aec8af9ca035f0361e8f2 (patch) | |
tree | d1488df6cbe07995115e1274e2aab066385904c7 | |
parent | 09aa3d6409acb2977b72e1dd0be0169fda3ec624 (diff) |
(indicate_http_error): Added calls to va_end() before leaving the
function.
-rw-r--r-- | src/htmlerror.c | 8 |
1 files changed, 6 insertions, 2 deletions
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)); } |