From d5d007abe357ce4bea5390bf3a872dc85497da38 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lutz=20J=C3=A4nicke?= Date: Thu, 18 Apr 2002 11:54:06 +0000 Subject: [PATCH] Optimize: better shortcut evaluation ("Howard Chu" ). --- crypto/objects/obj_dat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crypto/objects/obj_dat.c b/crypto/objects/obj_dat.c index cf21ea3377..8779ba7d1d 100644 --- a/crypto/objects/obj_dat.c +++ b/crypto/objects/obj_dat.c @@ -445,8 +445,7 @@ int OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name) return(0); } - nid=OBJ_obj2nid(a); - if ((nid == NID_undef) || no_name) { + if (no_name || (nid=OBJ_obj2nid(a)) == NID_undef) { len=a->length; p=a->data; -- 2.25.1