diff options
| author | beck <> | 2014-07-22 02:21:20 +0000 |
|---|---|---|
| committer | beck <> | 2014-07-22 02:21:20 +0000 |
| commit | c4e3191290f7dc034878e8c9eee2f395db280afd (patch) | |
| tree | 98cdda658409d8b250bb1c60e392a61894be842a /src/lib/libcrypto/store | |
| parent | 2384810741e4764a84e9c140c697eb7f1ff264c0 (diff) | |
| download | openbsd-c4e3191290f7dc034878e8c9eee2f395db280afd.tar.gz openbsd-c4e3191290f7dc034878e8c9eee2f395db280afd.tar.bz2 openbsd-c4e3191290f7dc034878e8c9eee2f395db280afd.zip | |
Kill a bunch more BUF_strdup's - these are converted to have a check for
NULL before an intrinsic strdup.
ok miod@
Diffstat (limited to 'src/lib/libcrypto/store')
| -rw-r--r-- | src/lib/libcrypto/store/str_meth.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/store/str_meth.c b/src/lib/libcrypto/store/str_meth.c index b3d4f9cc37..9d7c5ed98d 100644 --- a/src/lib/libcrypto/store/str_meth.c +++ b/src/lib/libcrypto/store/str_meth.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: str_meth.c,v 1.6 2014/06/12 15:49:30 deraadt Exp $ */ | 1 | /* $OpenBSD: str_meth.c,v 1.7 2014/07/22 02:21:20 beck Exp $ */ |
| 2 | /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL | 2 | /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL |
| 3 | * project 2003. | 3 | * project 2003. |
| 4 | */ | 4 | */ |
| @@ -65,8 +65,8 @@ STORE_create_method(char *name) | |||
| 65 | { | 65 | { |
| 66 | STORE_METHOD *store_method = calloc(1, sizeof(STORE_METHOD)); | 66 | STORE_METHOD *store_method = calloc(1, sizeof(STORE_METHOD)); |
| 67 | 67 | ||
| 68 | if (store_method) | 68 | if (store_method && name) |
| 69 | store_method->name = BUF_strdup(name); | 69 | store_method->name = strdup(name); |
| 70 | 70 | ||
| 71 | return store_method; | 71 | return store_method; |
| 72 | } | 72 | } |
