From 8eab0e41534a4fee487887d73eb38af9fefa3c6b Mon Sep 17 00:00:00 2001 From: martijn <> Date: Wed, 14 Aug 2019 17:20:41 +0000 Subject: [PATCH] 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@ --- src/lib/libutil/ber.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/libutil/ber.c b/src/lib/libutil/ber.c index f38d95b9..601ed555 100644 --- a/src/lib/libutil/ber.c +++ b/src/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 @@ -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)