diff options
author | 2016-12-22 16:57:38 +0000 | |
---|---|---|
committer | 2016-12-22 16:57:38 +0000 | |
commit | 6fe23c52ef2e2f3a2d36cb249661f7ec358a7d45 (patch) | |
tree | 4e6d7b786f5a8870f28e236042270a0d05afc69a /lib/libcrypto/objects/obj_dat.c | |
parent | sync (diff) | |
download | wireguard-openbsd-6fe23c52ef2e2f3a2d36cb249661f7ec358a7d45.tar.xz wireguard-openbsd-6fe23c52ef2e2f3a2d36cb249661f7ec358a7d45.zip |
OBJ_obj2txt() should return the total amount of space required
reported by @rhenium on GitHub
ok jsing@
Diffstat (limited to 'lib/libcrypto/objects/obj_dat.c')
-rw-r--r-- | lib/libcrypto/objects/obj_dat.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/libcrypto/objects/obj_dat.c b/lib/libcrypto/objects/obj_dat.c index 1ae38bc4e8e..1d6207072d7 100644 --- a/lib/libcrypto/objects/obj_dat.c +++ b/lib/libcrypto/objects/obj_dat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: obj_dat.c,v 1.36 2016/07/17 21:23:50 bcook Exp $ */ +/* $OpenBSD: obj_dat.c,v 1.37 2016/12/22 16:57:38 inoguchi Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -552,10 +552,6 @@ OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name) ret++; } - if (buf_len <= 0) { - ret = 0; - goto out; - } if (use_bn) { char *bndec; |