From: Vladimir Smirnov Date: Wed, 10 Sep 2014 19:08:50 +0000 (+0200) Subject: Fix typo in if caluse X-Git-Tag: collectd-5.5.0~198 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F730%2Fhead;p=thirdparty%2Fcollectd.git Fix typo in if caluse Fixes #729 --- diff --git a/src/network.c b/src/network.c index 701571d04..0e1ff512d 100644 --- a/src/network.c +++ b/src/network.c @@ -2003,7 +2003,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));