From add30acd6dd5b47853ff5c0205d23ff52792f6d8 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 12 Dec 2015 12:24:41 +0100 Subject: [PATCH] email plugin: fix check for result of malloc CID #38010 --- src/email.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/email.c b/src/email.c index 0b140bfe..4f5753c3 100644 --- a/src/email.c +++ b/src/email.c @@ -532,7 +532,7 @@ static void *open_connection (void __attribute__((unused)) *arg) } connection = malloc (sizeof (*connection)); - if (connection != NULL) + if (connection == NULL) { close (remote); continue; -- 2.11.0