diff options
Diffstat (limited to 'src/lib/libcrypto/pkcs12/p12_attr.c')
-rw-r--r-- | src/lib/libcrypto/pkcs12/p12_attr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libcrypto/pkcs12/p12_attr.c b/src/lib/libcrypto/pkcs12/p12_attr.c index f1a210b5d2..a16a97d03d 100644 --- a/src/lib/libcrypto/pkcs12/p12_attr.c +++ b/src/lib/libcrypto/pkcs12/p12_attr.c | |||
@@ -151,7 +151,7 @@ int PKCS12_add_friendlyname_asc (PKCS12_SAFEBAG *bag, const char *name, | |||
151 | { | 151 | { |
152 | unsigned char *uniname; | 152 | unsigned char *uniname; |
153 | int ret, unilen; | 153 | int ret, unilen; |
154 | if (!asc2uni(name, &uniname, &unilen)) { | 154 | if (!asc2uni(name, namelen, &uniname, &unilen)) { |
155 | PKCS12err(PKCS12_F_PKCS12_ADD_FRIENDLYNAME_ASC, | 155 | PKCS12err(PKCS12_F_PKCS12_ADD_FRIENDLYNAME_ASC, |
156 | ERR_R_MALLOC_FAILURE); | 156 | ERR_R_MALLOC_FAILURE); |
157 | return 0; | 157 | return 0; |