projects
/
IOMultiplexer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[IOMultiplexer] fixed small operator fail
[IOMultiplexer.git]
/
src
/
IOHandler.c
diff --git
a/src/IOHandler.c
b/src/IOHandler.c
index e710ffe88022a21c233ead04551e9ba6fa168f6a..06e2bff70825241b2a8f17fc8c2242dad79f37ad 100644
(file)
--- a/
src/IOHandler.c
+++ b/
src/IOHandler.c
@@
-481,7
+481,7
@@
struct IODescriptor *iohandler_listen_flags(const char *hostname, unsigned int p
ip6->sin6_port = htons(port);
bind(sockfd, (struct sockaddr*)ip6, sizeof(*ip6));
ip6->sin6_port = htons(port);
bind(sockfd, (struct sockaddr*)ip6, sizeof(*ip6));
- } else if(ip4 && (flags &
&
IOHANDLER_LISTEN_IPV4)) {
+ } else if(ip4 && (flags & IOHANDLER_LISTEN_IPV4)) {
sockfd = socket(AF_INET, SOCK_STREAM, 0);
if(sockfd == -1) return NULL;
sockfd = socket(AF_INET, SOCK_STREAM, 0);
if(sockfd == -1) return NULL;