From 951af13fcec781791beaff29ea76639a8ff166d9 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 0e34b89f..ca4dbc2c 100644 --- a/src/email.c +++ b/src/email.c @@ -534,7 +534,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