Continued multibyte character support.
[openssl.git] / crypto / asn1 / a_strnid.c
index 520b11883f73f75d9b2c52b86053e969239877c7..cb37024db22902edc19d56291c30d94230eca099 100644 (file)
@@ -85,7 +85,7 @@ ASN1_STRING *ASN1_STRING_set_by_NID(ASN1_STRING **out, const unsigned char *in,
                                        tbl->minsize, tbl->maxsize);
        else ret = ASN1_mbstring_copy(out, in, inlen, inform, 0);
        if(ret <= 0) return NULL;
                                        tbl->minsize, tbl->maxsize);
        else ret = ASN1_mbstring_copy(out, in, inlen, inform, 0);
        if(ret <= 0) return NULL;
-       return str;
+       return *out;
 }
 
 /* Now the tables and helper functions for the string table:
 }
 
 /* Now the tables and helper functions for the string table: