From 4a5e1ecf9259f5617ef4d9c1319241e077855164 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Sat, 11 Aug 2012 10:29:08 +0100 Subject: [PATCH] Fixed error logging in set_ssl_option() --- mongoose.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mongoose.c b/mongoose.c index 521cb0fd..bbe85865 100644 --- a/mongoose.c +++ b/mongoose.c @@ -3772,12 +3772,12 @@ static int set_ssl_option(struct mg_context *ctx) { } if (ctx->ssl_ctx != NULL && pem != NULL && SSL_CTX_use_PrivateKey_file(ctx->ssl_ctx, pem, SSL_FILETYPE_PEM) == 0) { - cry(fc(ctx), "%s: cannot open %s: %s", NULL, pem, ssl_error()); + cry(fc(ctx), "%s: cannot open %s: %s", __func__, pem, ssl_error()); return 0; } if (ctx->ssl_ctx != NULL && chain != NULL && SSL_CTX_use_certificate_chain_file(ctx->ssl_ctx, chain) == 0) { - cry(fc(ctx), "%s: cannot open %s: %s", NULL, chain, ssl_error()); + cry(fc(ctx), "%s: cannot open %s: %s", __func__, chain, ssl_error()); return 0; }