Browse Source

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@
OPENBSD_6_6
martijn 5 years ago
parent
commit
8eab0e4153
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/lib/libutil/ber.c

+ 2
- 2
src/lib/libutil/ber.c View File

@ -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> * 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 = va_arg(ap, struct ber_element **);
*e = ber; *e = ber;
ret++; ret++;
continue;
break;
case 'E': case 'E':
i = va_arg(ap, long long *); i = va_arg(ap, long long *);
if (ber_get_enumerated(ber, i) == -1) if (ber_get_enumerated(ber, i) == -1)


Loading…
Cancel
Save