diff options
author | Kurt Roeckx <kurt@roeckx.be> | 2015-01-24 14:46:50 +0100 |
---|---|---|
committer | Kurt Roeckx <kurt@roeckx.be> | 2015-01-24 14:46:50 +0100 |
commit | 2747d73c1466c487daf64a1234b6fe2e8a62ac75 (patch) | |
tree | f862e6a4a3ecdd9d53ec8d7a6814d7271504043b /crypto/engine | |
parent | c963c421fb3d84ca3c86284593f0439f7c152f3e (diff) |
Fix segfault with empty fields as last in the config.
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'crypto/engine')
-rw-r--r-- | crypto/engine/eng_fat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/engine/eng_fat.c b/crypto/engine/eng_fat.c index bcb4c446b2..4279dd94b1 100644 --- a/crypto/engine/eng_fat.c +++ b/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)) |