From 64a7a36f6509fa8971f6ef84b0ed8d228f7baa66 Mon Sep 17 00:00:00 2001 From: mrcsys Date: Wed, 22 Feb 2006 13:29:29 +0000 Subject: Fixed a small bug in reading (or not) a calist --- nanohttp/nanohttp-ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nanohttp/nanohttp-ssl.c') 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 */ -- cgit v1.1-32-gdbae