diff options
Diffstat (limited to 'src/lib/libcrypto/x509v3/v3_genn.c')
-rw-r--r-- | src/lib/libcrypto/x509v3/v3_genn.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_genn.c b/src/lib/libcrypto/x509v3/v3_genn.c index 9943fd33d2..a6b7a18b17 100644 --- a/src/lib/libcrypto/x509v3/v3_genn.c +++ b/src/lib/libcrypto/x509v3/v3_genn.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: v3_genn.c,v 1.11 2015/07/25 16:00:14 jsing Exp $ */ | 1 | /* $OpenBSD: v3_genn.c,v 1.12 2015/09/26 17:38:41 jsing Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 1999. | 3 | * project 1999. |
4 | */ | 4 | */ |
@@ -321,8 +321,7 @@ GENERAL_NAMES_free(GENERAL_NAMES *a) | |||
321 | GENERAL_NAME * | 321 | GENERAL_NAME * |
322 | GENERAL_NAME_dup(GENERAL_NAME *a) | 322 | GENERAL_NAME_dup(GENERAL_NAME *a) |
323 | { | 323 | { |
324 | return (GENERAL_NAME *)ASN1_dup((i2d_of_void *)i2d_GENERAL_NAME, | 324 | return ASN1_item_dup(&GENERAL_NAME_it, a); |
325 | (d2i_of_void *)d2i_GENERAL_NAME, (char *)a); | ||
326 | } | 325 | } |
327 | 326 | ||
328 | /* Returns 0 if they are equal, != 0 otherwise. */ | 327 | /* Returns 0 if they are equal, != 0 otherwise. */ |