Commit a8991527 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

- corrected the condition for the case of !-4

- (minor style change) simplified some if conditions


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1132 e5f2f494-b856-4b98-b285-d166d9295462
parent 7e9e13da
......@@ -161,7 +161,7 @@ main(int argc, char* argv[]) {
exit(1);
}
}
if (!ipv6_only) {
if (!ipv4_only) {
ps6 = getSocket(AF_INET6, port);
if (ps6 < 0) {
if (ps4 < 0) {
......@@ -208,17 +208,13 @@ main(int argc, char* argv[]) {
throw FatalError("select error");
}
if (ps4 >= 0) {
if (FD_ISSET(ps4, &fds)) {
++counter;
auth_server->processMessage(ps4);
}
if (ps4 >= 0 && FD_ISSET(ps4, &fds)) {
++counter;
auth_server->processMessage(ps4);
}
if (ps6 >= 0) {
if (FD_ISSET(ps6, &fds)) {
++counter;
auth_server->processMessage(ps6);
}
if (ps6 >= 0 && FD_ISSET(ps6, &fds)) {
++counter;
auth_server->processMessage(ps6);
}
if (FD_ISSET(ss, &fds)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment