diff options
author | deraadt <> | 2014-04-18 15:38:16 +0000 |
---|---|---|
committer | deraadt <> | 2014-04-18 15:38:16 +0000 |
commit | e5771c8113183d9900791e248265caa10e314025 (patch) | |
tree | 54fb231c476c85fa6c2f349d6f2ac9ee7528bbbb /src/lib/libcrypto | |
parent | 8d7a155e827dd96b3fcf47a54551caa3e14fa961 (diff) | |
download | openbsd-e5771c8113183d9900791e248265caa10e314025.tar.gz openbsd-e5771c8113183d9900791e248265caa10e314025.tar.bz2 openbsd-e5771c8113183d9900791e248265caa10e314025.zip |
use the portable construct around asprintf; pointed out by halex
Diffstat (limited to 'src/lib/libcrypto')
-rw-r--r-- | src/lib/libcrypto/conf/conf_mod.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libcrypto/conf/conf_mod.c b/src/lib/libcrypto/conf/conf_mod.c index 436f239b12..2417086537 100644 --- a/src/lib/libcrypto/conf/conf_mod.c +++ b/src/lib/libcrypto/conf/conf_mod.c | |||
@@ -551,7 +551,8 @@ CONF_get1_default_config_file(void) | |||
551 | file = getenv("OPENSSL_CONF"); | 551 | file = getenv("OPENSSL_CONF"); |
552 | if (file) | 552 | if (file) |
553 | return BUF_strdup(file); | 553 | return BUF_strdup(file); |
554 | asprintf(&file, "%s/openssl.cnf", X509_get_default_cert_area()); | 554 | if (asprintf(&file, "%s/openssl.cnf", X509_get_default_cert_area()) == -1) |
555 | return (NULL); | ||
555 | return file; | 556 | return file; |
556 | } | 557 | } |
557 | 558 | ||