Optimize: better shortcut evaluation ("Howard Chu" <hyc@highlandsun.com>).

Submitted by:
Reviewed by:
PR:
This commit is contained in:
Lutz Jänicke 2002-04-18 11:53:35 +00:00
parent 1dc03ef706
commit 365c6e4661

View file

@ -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;