summaryrefslogtreecommitdiff
path: root/lib/libutil
diff options
context:
space:
mode:
authorMartijn van Duren <martijn@cvs.openbsd.org>2019-08-14 17:20:42 +0000
committerMartijn van Duren <martijn@cvs.openbsd.org>2019-08-14 17:20:42 +0000
commitb77f8f0bfa386b23915c51f965fe362d673aa0de (patch)
tree21c3682124173adf0bb41d8cfe87c59f26e6f921 /lib/libutil
parent6e23590e2b943ac655c7ed27a804ffdb13f7ad62 (diff)
Make ber_scanf_elements's 'e' attribute eat the element.
Right now all consumers use 'e' at the end of the list, so no regressions should be introduced. OK claudio@ Seems sensible to deraadt@
Diffstat (limited to 'lib/libutil')
-rw-r--r--lib/libutil/ber.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libutil/ber.c b/lib/libutil/ber.c
index f38d95b9617..601ed555e7e 100644
--- a/lib/libutil/ber.c
+++ b/lib/libutil/ber.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ber.c,v 1.12 2019/08/14 04:48:13 martijn Exp $ */
+/* $OpenBSD: ber.c,v 1.13 2019/08/14 17:20:41 martijn Exp $ */
/*
* Copyright (c) 2007, 2012 Reyk Floeter <reyk@openbsd.org>
@@ -711,7 +711,7 @@ ber_scanf_elements(struct ber_element *ber, char *fmt, ...)
e = va_arg(ap, struct ber_element **);
*e = ber;
ret++;
- continue;
+ break;
case 'E':
i = va_arg(ap, long long *);
if (ber_get_enumerated(ber, i) == -1)