From a0f5192c2a2c5eb930014195c59af317c29c2776 Mon Sep 17 00:00:00 2001 From: Vladimir Smirnov Date: Wed, 10 Sep 2014 21:08:50 +0200 Subject: [PATCH] Fix typo in if caluse Fixes #729 Signed-off-by: Florian Forster --- src/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.30.2