From: Lutz Jänicke Date: Thu, 18 Apr 2002 11:52:28 +0000 (+0000) Subject: Optimize: better shortcut evaluation ("Howard Chu" ). X-Git-Tag: OpenSSL_0_9_6d~23 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0a0102b0fdd1c6f593c9b1c0727f7ea38ab460f2;p=oweals%2Fopenssl.git Optimize: better shortcut evaluation ("Howard Chu" ). --- diff --git a/crypto/objects/obj_dat.c b/crypto/objects/obj_dat.c index 4d82378b9d..d802c4d09c 100644 --- a/crypto/objects/obj_dat.c +++ b/crypto/objects/obj_dat.c @@ -437,8 +437,7 @@ int OBJ_obj2txt(char *buf, int buf_len, 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;