diff options
author | Martijn van Duren <martijn@cvs.openbsd.org> | 2019-08-14 17:20:42 +0000 |
---|---|---|
committer | Martijn van Duren <martijn@cvs.openbsd.org> | 2019-08-14 17:20:42 +0000 |
commit | b77f8f0bfa386b23915c51f965fe362d673aa0de (patch) | |
tree | 21c3682124173adf0bb41d8cfe87c59f26e6f921 /lib/libutil | |
parent | 6e23590e2b943ac655c7ed27a804ffdb13f7ad62 (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.c | 4 |
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) |