diff options
author | beck <> | 2002-06-07 03:45:34 +0000 |
---|---|---|
committer | beck <> | 2002-06-07 03:45:34 +0000 |
commit | 820a20ea2b5f97e4a8fb714fedf33edafd40740a (patch) | |
tree | 595b35cf9e1ff104d11fb8ab64ebb6a5c5f42755 /src/lib/libcrypto/x509v3/v3_ia5.c | |
parent | d13d58e31ac54f9b283fe3ec100f31030e050fb4 (diff) | |
download | openbsd-820a20ea2b5f97e4a8fb714fedf33edafd40740a.tar.gz openbsd-820a20ea2b5f97e4a8fb714fedf33edafd40740a.tar.bz2 openbsd-820a20ea2b5f97e4a8fb714fedf33edafd40740a.zip |
Merge OpenSSL 0.9.7-stable-20020605,
correctly autogenerate obj_mac.h
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/x509v3/v3_ia5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_ia5.c b/src/lib/libcrypto/x509v3/v3_ia5.c index f3bba38269..f9414456de 100644 --- a/src/lib/libcrypto/x509v3/v3_ia5.c +++ b/src/lib/libcrypto/x509v3/v3_ia5.c | |||
@@ -82,7 +82,7 @@ static char *i2s_ASN1_IA5STRING(X509V3_EXT_METHOD *method, | |||
82 | { | 82 | { |
83 | char *tmp; | 83 | char *tmp; |
84 | if(!ia5 || !ia5->length) return NULL; | 84 | if(!ia5 || !ia5->length) return NULL; |
85 | tmp = OPENSSL_malloc(ia5->length + 1); | 85 | if (!(tmp = OPENSSL_malloc(ia5->length + 1))) return NULL; |
86 | memcpy(tmp, ia5->data, ia5->length); | 86 | memcpy(tmp, ia5->data, ia5->length); |
87 | tmp[ia5->length] = 0; | 87 | tmp[ia5->length] = 0; |
88 | return tmp; | 88 | return tmp; |