From: Vladimir Smirnov Date: Wed, 10 Sep 2014 19:08:50 +0000 (+0200) Subject: Fix typo in if caluse X-Git-Tag: collectd-5.3.2~34 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=a0f5192c2a2c5eb930014195c59af317c29c2776 Fix typo in if caluse Fixes #729 Signed-off-by: Florian Forster --- diff --git a/src/network.c b/src/network.c index ce9b0cc7..a33d06e0 100644 --- a/src/network.c +++ b/src/network.c @@ -1996,7 +1996,7 @@ static sockent_t *sockent_create (int type) /* {{{ */ { sockent_t *se; - if ((type != SOCKENT_TYPE_CLIENT) || (type != SOCKENT_TYPE_SERVER)) + if ((type != SOCKENT_TYPE_CLIENT) && (type != SOCKENT_TYPE_SERVER)) return (NULL); se = malloc (sizeof (*se));