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: https://git.tokkee.org/?a=commitdiff_plain;h=5050bc985d5be2c8595b0d4f1ab0e4ba6d1775a2;p=collectd.git Fix typo in if caluse Fixes #729 --- diff --git a/src/network.c b/src/network.c index 701571d0..0e1ff512 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));