aboutsummaryrefslogtreecommitdiff
path: root/openssl/crypto/engine/eng_fat.c
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/crypto/engine/eng_fat.c')
-rw-r--r--openssl/crypto/engine/eng_fat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openssl/crypto/engine/eng_fat.c b/openssl/crypto/engine/eng_fat.c
index bcb4c446b..4279dd94b 100644
--- a/openssl/crypto/engine/eng_fat.c
+++ b/openssl/crypto/engine/eng_fat.c
@@ -103,6 +103,8 @@ int ENGINE_set_default(ENGINE *e, unsigned int flags)
static int int_def_cb(const char *alg, int len, void *arg)
{
unsigned int *pflags = arg;
+ if (alg == NULL)
+ return 0;
if (!strncmp(alg, "ALL", len))
*pflags |= ENGINE_METHOD_ALL;
else if (!strncmp(alg, "RSA", len))