summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6d9b6a8)
raw | patch | inline | side by side (parent: 6d9b6a8)
author | Vladimir Smirnov <civil.over@gmail.com> | |
Wed, 10 Sep 2014 19:08:50 +0000 (21:08 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Wed, 10 Sep 2014 21:02:01 +0000 (23:02 +0200) |
Fixes #729
Signed-off-by: Florian Forster <octo@collectd.org>
Signed-off-by: Florian Forster <octo@collectd.org>
src/network.c | patch | blob | history |
diff --git a/src/network.c b/src/network.c
index ce9b0cc71fe32f871a63e1f4f75e7039314238f2..a33d06e0f8aaeaee6129420253be74063d84bebc 100644 (file)
--- a/src/network.c
+++ b/src/network.c
{
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));