[IOMultiplexer] fixed small operator fail master
authorpk910 <philipp@zoelle1.de>
Tue, 5 Mar 2013 00:06:10 +0000 (01:06 +0100)
committerpk910 <philipp@zoelle1.de>
Tue, 5 Mar 2013 00:06:10 +0000 (01:06 +0100)
src/IOHandler.c

index e710ffe88022a21c233ead04551e9ba6fa168f6a..06e2bff70825241b2a8f17fc8c2242dad79f37ad 100644 (file)
@@ -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));
-    } 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;