diff options
Diffstat (limited to 'src/lib/libcrypto/conf/conf_mod.c')
-rw-r--r-- | src/lib/libcrypto/conf/conf_mod.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libcrypto/conf/conf_mod.c b/src/lib/libcrypto/conf/conf_mod.c index c4c429497c..4363f297c7 100644 --- a/src/lib/libcrypto/conf/conf_mod.c +++ b/src/lib/libcrypto/conf/conf_mod.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: conf_mod.c,v 1.24 2014/07/13 16:03:09 beck Exp $ */ | 1 | /* $OpenBSD: conf_mod.c,v 1.25 2014/07/22 02:21:20 beck Exp $ */ |
2 | /* Written by Stephen Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Stephen Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2001. | 3 | * project 2001. |
4 | */ | 4 | */ |
@@ -283,6 +283,8 @@ module_add(DSO *dso, const char *name, conf_init_func *ifunc, | |||
283 | { | 283 | { |
284 | CONF_MODULE *tmod = NULL; | 284 | CONF_MODULE *tmod = NULL; |
285 | 285 | ||
286 | if (name == NULL) | ||
287 | return NULL; | ||
286 | if (supported_modules == NULL) | 288 | if (supported_modules == NULL) |
287 | supported_modules = sk_CONF_MODULE_new_null(); | 289 | supported_modules = sk_CONF_MODULE_new_null(); |
288 | if (supported_modules == NULL) | 290 | if (supported_modules == NULL) |
@@ -292,7 +294,7 @@ module_add(DSO *dso, const char *name, conf_init_func *ifunc, | |||
292 | return NULL; | 294 | return NULL; |
293 | 295 | ||
294 | tmod->dso = dso; | 296 | tmod->dso = dso; |
295 | tmod->name = BUF_strdup(name); | 297 | tmod->name = strdup(name); |
296 | tmod->init = ifunc; | 298 | tmod->init = ifunc; |
297 | tmod->finish = ffunc; | 299 | tmod->finish = ffunc; |
298 | tmod->links = 0; | 300 | tmod->links = 0; |