From: Lutz Jänicke Date: Thu, 18 Apr 2002 11:54:06 +0000 (+0000) Subject: Optimize: better shortcut evaluation ("Howard Chu" ). X-Git-Tag: OpenSSL_0_9_6d~20^2~8 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d5d007abe357ce4bea5390bf3a872dc85497da38;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 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;