Fix typo in if caluse
[collectd.git] / src / network.c
index ce9b0cc..a33d06e 100644 (file)
@@ -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));