diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/a_strex.c')
-rw-r--r-- | src/lib/libcrypto/asn1/a_strex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/a_strex.c b/src/lib/libcrypto/asn1/a_strex.c index 8dab29dca1..7ddb7662f1 100644 --- a/src/lib/libcrypto/asn1/a_strex.c +++ b/src/lib/libcrypto/asn1/a_strex.c | |||
@@ -544,7 +544,7 @@ int ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in) | |||
544 | { | 544 | { |
545 | ASN1_STRING stmp, *str = &stmp; | 545 | ASN1_STRING stmp, *str = &stmp; |
546 | int mbflag, type, ret; | 546 | int mbflag, type, ret; |
547 | if(!*out || !in) return -1; | 547 | if(!in) return -1; |
548 | type = in->type; | 548 | type = in->type; |
549 | if((type < 0) || (type > 30)) return -1; | 549 | if((type < 0) || (type > 30)) return -1; |
550 | mbflag = tag2nbyte[type]; | 550 | mbflag = tag2nbyte[type]; |
@@ -553,6 +553,6 @@ int ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in) | |||
553 | stmp.data = NULL; | 553 | stmp.data = NULL; |
554 | ret = ASN1_mbstring_copy(&str, in->data, in->length, mbflag, B_ASN1_UTF8STRING); | 554 | ret = ASN1_mbstring_copy(&str, in->data, in->length, mbflag, B_ASN1_UTF8STRING); |
555 | if(ret < 0) return ret; | 555 | if(ret < 0) return ret; |
556 | if(out) *out = stmp.data; | 556 | *out = stmp.data; |
557 | return stmp.length; | 557 | return stmp.length; |
558 | } | 558 | } |