From 5050bc985d5be2c8595b0d4f1ab0e4ba6d1775a2 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 --- src/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.30.2