diff options
| author | deraadt <> | 2014-04-18 15:38:16 +0000 |
|---|---|---|
| committer | deraadt <> | 2014-04-18 15:38:16 +0000 |
| commit | 645923dffb1bc46b8b1eb2f942f8d923f9f6cfd4 (patch) | |
| tree | 54fb231c476c85fa6c2f349d6f2ac9ee7528bbbb /src/lib/libc | |
| parent | a5f0f1ea9ba11e04b25ddc912b591e1916a6610c (diff) | |
| download | openbsd-645923dffb1bc46b8b1eb2f942f8d923f9f6cfd4.tar.gz openbsd-645923dffb1bc46b8b1eb2f942f8d923f9f6cfd4.tar.bz2 openbsd-645923dffb1bc46b8b1eb2f942f8d923f9f6cfd4.zip | |
use the portable construct around asprintf; pointed out by halex
Diffstat (limited to '')
| -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 | ||
