diff options
author | Kinichiro Inoguchi <inoguchi@cvs.openbsd.org> | 2016-12-22 16:57:39 +0000 |
---|---|---|
committer | Kinichiro Inoguchi <inoguchi@cvs.openbsd.org> | 2016-12-22 16:57:39 +0000 |
commit | 2558698d6aa766f7aa7497d5750754c691fb695b (patch) | |
tree | ec717d61d8e58b6385f88388cf56a62d8fc8bfec /lib | |
parent | 8d23cfef6bb1c31bfdb7cfdd68314a418f48d455 (diff) |
OBJ_obj2txt() should return the total amount of space required
reported by @rhenium on GitHub
ok jsing@
Diffstat (limited to 'lib')
-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; |