summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7186f67)
raw | patch | inline | side by side (parent: 7186f67)
author | Vladimir Smirnov <civil.over@gmail.com> | |
Wed, 10 Sep 2014 19:08:50 +0000 (21:08 +0200) | ||
committer | Vladimir Smirnov <civil.over@gmail.com> | |
Wed, 10 Sep 2014 19:08:50 +0000 (21:08 +0200) |
Fixes #729
src/network.c | patch | blob | history |
diff --git a/src/network.c b/src/network.c
index 701571d046f44a89d650450a3ef4106a1a714ae1..0e1ff512dd38e7862e7e3ee16d51c2e2f5366a88 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));