summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-04-22 22:48:49 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-04-22 22:48:49 +0000
commitb90fd48c4dcf549cd6adb98e27779f80fd004a77 (patch)
treec9d191a2e42f715e6e72515892d43154b38f485a /libexec
parentc80cb8dbcf21a7b0bd6caf9aa603f14862cc35ba (diff)
oops, forgot a va_end; spotted by andrushock@korovino.net
Diffstat (limited to 'libexec')
-rw-r--r--libexec/telnetd/global.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libexec/telnetd/global.c b/libexec/telnetd/global.c
index 395102757f8..c7d008af540 100644
--- a/libexec/telnetd/global.c
+++ b/libexec/telnetd/global.c
@@ -93,8 +93,10 @@ output_data (const char *format, ...)
va_start(args, format);
remaining = BUFSIZ - (nfrontp - netobuf);
- if (remaining == 0)
+ if (remaining == 0) {
+ va_end(args);
return remaining;
+ }
if ((n = vsnprintf(nfrontp, remaining, format, args)) >= remaining || n < 0)
n = strlen(nfrontp);
nfrontp += n;