From abb4b5e082b76c09a8a169ee95b47edd8daf4467 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sat, 10 Apr 2010 12:15:00 +0200 Subject: [PATCH] pinba plugin: Fix a sever typo. --- src/pinba.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pinba.c b/src/pinba.c index ee790ff5..9697cf27 100644 --- a/src/pinba.c +++ b/src/pinba.c @@ -374,7 +374,7 @@ static pinba_socket_t *pinba_socket_open (const char *node, /* {{{ */ assert (ai_list != NULL); s = malloc (sizeof (*s)); - if (s != NULL) + if (s == NULL) { freeaddrinfo (ai_list); ERROR ("pinba plugin: malloc failed."); -- 2.30.2