ret= recv(fd, buf, len, 0);
}
- if (ret == SOCKET_ERROR && get_socket_errno() == EWOULDBLOCK)
+ if (ret == SOCKET_ERROR && get_socket_errno() == EWOULDBLOCK)
{
struct pollfd fds;
memset(&fds, 0, sizeof(struct pollfd));
execute(send_string("quit noreply\r\n"));
execute(receive_error_response());
}
-
+
/* Verify that quit works */
execute(send_string("quit\r\n"));
execute(receive_line(buffer, sizeof(buffer)));
verify(strncmp(buffer, "VERSION ", 8) == 0);
- char *version = &buffer[sizeof("VERSION") + 2];
- if (version[0] >= '1' || (version[0] == '1' && version[2] >= '6')) {
+ char *version = &buffer[sizeof("VERSION")];
+ if (version[0] > '1' || (version[0] == '1' && version[2] >= '6')) {
v16x_or_greater = true;
}