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

This commit is contained in:
Lutz Jänicke 2002-04-18 11:54:06 +00:00
parent 151457ab16
commit d5d007abe3

View File

@ -445,8 +445,7 @@ int OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name)
return(0); return(0);
} }
nid=OBJ_obj2nid(a); if (no_name || (nid=OBJ_obj2nid(a)) == NID_undef) {
if ((nid == NID_undef) || no_name) {
len=a->length; len=a->length;
p=a->data; p=a->data;