From 226832254dfa92aaeade5677a07849108c872d02 Mon Sep 17 00:00:00 2001 From: inoguchi <> Date: Thu, 22 Dec 2016 16:57:38 +0000 Subject: OBJ_obj2txt() should return the total amount of space required reported by @rhenium on GitHub ok jsing@ --- src/lib/libcrypto/objects/obj_dat.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/lib/libcrypto/objects/obj_dat.c b/src/lib/libcrypto/objects/obj_dat.c index 1ae38bc4e8..1d6207072d 100644 --- a/src/lib/libcrypto/objects/obj_dat.c +++ b/src/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; -- cgit v1.2.3-55-g6feb