aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2002-08-30 17:16:56 +0000
committerDr. Stephen Henson <steve@openssl.org>2002-08-30 17:16:56 +0000
commite474aacd58e1f4da985aa9c771488c23b3f462c8 (patch)
tree344327d1fb5006d39f6e945741b786047c2fbe8b
parent145a2794dabd58fa5d01b87d5d0aef5b50f9bea1 (diff)
downloadopenssl-e474aacd58e1f4da985aa9c771488c23b3f462c8.tar.gz
Fix ASN1_STRING_to_UTF8: remove non sensical !*out test.
-rw-r--r--crypto/asn1/a_strex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/asn1/a_strex.c b/crypto/asn1/a_strex.c
index 569b811998..9a57eba270 100644
--- 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;
}