summaryrefslogtreecommitdiffstats
path: root/nanohttp
diff options
context:
space:
mode:
Diffstat (limited to 'nanohttp')
-rw-r--r--nanohttp/nanohttp-ssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nanohttp/nanohttp-ssl.c b/nanohttp/nanohttp-ssl.c
index cd18b97..63bf0f7 100644
--- a/nanohttp/nanohttp-ssl.c
+++ b/nanohttp/nanohttp-ssl.c
@@ -246,7 +246,7 @@ initialize_ctx (const char *keyfile, const char *password, const char *calist)
log_verbose1 ("Keyfile read ok");
}
- if (calist != NULL)
+ if (calist != NULL && *calist != '\0')
{
/* Load the CAs we trust */