diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2002-08-30 17:18:22 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2002-08-30 17:18:22 +0000 |
commit | b499ed06d2afa4e495f0985ba3c571a1e6ee3f69 (patch) | |
tree | d0add0f967007d04c102fc9d93f6ac3decd6acd2 /crypto | |
parent | 6ff7c95843b25ee818d986510cfd085a99a319a1 (diff) |
Fix ASN1_STRING_to_UTF8: remove non sensical !*out test.
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/asn1/a_strex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/asn1/a_strex.c b/crypto/asn1/a_strex.c index 8dab29dca1..7ddb7662f1 100644 --- a/crypto/asn1/a_strex.c +++ b/crypto/asn1/a_strex.c @@ -544,7 +544,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]; @@ -553,6 +553,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; } |