diff options
author | Lutz Jänicke <jaenicke@openssl.org> | 2002-04-18 11:54:06 +0000 |
---|---|---|
committer | Lutz Jänicke <jaenicke@openssl.org> | 2002-04-18 11:54:06 +0000 |
commit | d5d007abe357ce4bea5390bf3a872dc85497da38 (patch) | |
tree | b7d294dcc7a5e352dd28801b3d01dc71e6f92aba /crypto/objects | |
parent | 151457ab16b19f855240ef4c417a8ba2e61abe22 (diff) |
Optimize: better shortcut evaluation ("Howard Chu" <hyc@highlandsun.com>).
Diffstat (limited to 'crypto/objects')
-rw-r--r-- | crypto/objects/obj_dat.c | 3 |
1 files changed, 1 insertions, 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; |