From 566440bdc75db82c04c173e4ae359ec0e56e6513 Mon Sep 17 00:00:00 2001 From: Jianhui Zhao Date: Mon, 10 Feb 2020 21:51:09 +0800 Subject: [PATCH] Fix typo bug Signed-off-by: Jianhui Zhao --- src/ssl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ssl.c b/src/ssl.c index a68697d..b9fe506 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -70,8 +70,7 @@ struct rtty_ssl_ctx { int rtty_ssl_init(struct rtty_ssl_ctx **ctx, int sock, const char *host) { struct rtty_ssl_ctx *c = calloc(1, sizeof(struct rtty_ssl_ctx)); - - if (!ctx) { + if (!c) { log_err("calloc failed: %s\n", strerror(errno)); return -1; }