diff options
author | 2003-01-18 22:18:09 +0000 | |
---|---|---|
committer | 2003-01-18 22:18:09 +0000 | |
commit | ddcdc3a74b8544f5ae0eb664f35ebb9bbc1c0f33 (patch) | |
tree | e46835afcdefaa3788ed482347583c7b32a37d08 | |
parent | slepping (diff) | |
download | wireguard-openbsd-ddcdc3a74b8544f5ae0eb664f35ebb9bbc1c0f33.tar.xz wireguard-openbsd-ddcdc3a74b8544f5ae0eb664f35ebb9bbc1c0f33.zip |
va_end() missing. Thanks to Andrey Matveev.
-rw-r--r-- | sbin/pfctl/pfctl_table.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/pfctl/pfctl_table.c b/sbin/pfctl/pfctl_table.c index bfe51355387..847a872e99b 100644 --- a/sbin/pfctl/pfctl_table.c +++ b/sbin/pfctl/pfctl_table.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl_table.c,v 1.23 2003/01/18 15:00:24 cedric Exp $ */ +/* $OpenBSD: pfctl_table.c,v 1.24 2003/01/18 22:18:09 cedric Exp $ */ /* * Copyright (c) 2002 Cedric Berger @@ -642,8 +642,11 @@ xprintf(int opts, char *fmt, ...) if (opts & PF_OPT_QUIET) return; + va_start(args, fmt); vfprintf(stderr, fmt, args); + va_end(args); + if (opts & PF_OPT_DUMMYACTION) fprintf(stderr, " (dummy).\n"); else if (opts & PF_OPT_NOACTION) |