diff options
Diffstat (limited to 'src/lib/libcrypto/store/str_meth.c')
-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 | } |