projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
145a279
)
Fix ASN1_STRING_to_UTF8: remove non sensical !*out test.
author
Dr. Stephen Henson
<steve@openssl.org>
Fri, 30 Aug 2002 17:16:56 +0000
(17:16 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Fri, 30 Aug 2002 17:16:56 +0000
(17:16 +0000)
crypto/asn1/a_strex.c
patch
|
blob
|
history
diff --git
a/crypto/asn1/a_strex.c
b/crypto/asn1/a_strex.c
index 569b811998584a8612e8ea5040d4ec96407d5581..9a57eba270d97bf3d6513d5578b49a8bda27b6db 100644
(file)
--- a/
crypto/asn1/a_strex.c
+++ b/
crypto/asn1/a_strex.c
@@
-519,7
+519,7
@@
int ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in)
{
ASN1_STRING stmp, *str = &stmp;
int mbflag, type, ret;
- if(!
*out || !
in) return -1;
+ if(!in) return -1;
type = in->type;
if((type < 0) || (type > 30)) return -1;
mbflag = tag2nbyte[type];
@@
-528,6
+528,6
@@
int ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in)
stmp.data = NULL;
ret = ASN1_mbstring_copy(&str, in->data, in->length, mbflag, B_ASN1_UTF8STRING);
if(ret < 0) return ret;
-
if(out)
*out = stmp.data;
+ *out = stmp.data;
return stmp.length;
}