summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrob <rob@openbsd.org>2019-05-12 20:25:10 +0000
committerrob <rob@openbsd.org>2019-05-12 20:25:10 +0000
commitd1325eace28fe66c673fbdb61d3f45fde53956d2 (patch)
tree05022b345af90a1f0c41b7270ae9265b75b46ab2
parentTest mandatory use of minimal contents octets for int and enum. (diff)
downloadwireguard-openbsd-d1325eace28fe66c673fbdb61d3f45fde53956d2.tar.xz
wireguard-openbsd-d1325eace28fe66c673fbdb61d3f45fde53956d2.zip
Enable support for the writting of BITSTRING by treating it as an OCTETSTRING.
ok claudio@
-rw-r--r--lib/libutil/ber.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libutil/ber.c b/lib/libutil/ber.c
index 3424a78e0e3..35aa247dc19 100644
--- a/lib/libutil/ber.c
+++ b/lib/libutil/ber.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ber.c,v 1.5 2019/05/12 20:13:08 rob Exp $ */
+/* $OpenBSD: ber.c,v 1.6 2019/05/12 20:25:10 rob Exp $ */
/*
* Copyright (c) 2007, 2012 Reyk Floeter <reyk@openbsd.org>
@@ -1008,7 +1008,6 @@ ber_dump_element(struct ber *ber, struct ber_element *root)
}
break;
case BER_TYPE_BITSTRING:
- return -1;
case BER_TYPE_OCTETSTRING:
case BER_TYPE_OBJECT:
ber_write(ber, root->be_val, root->be_len);