Skip to content
Snippets Groups Projects
Commit 79916160 authored by rswindell's avatar rswindell
Browse files

Doesn't test pop3_socket with FD_ISSET if it is an invalid socket.

parent 6819af68
No related branches found
No related tags found
No related merge requests found
......@@ -3190,7 +3190,8 @@ void DLLCALL mail_server(void* arg)
_beginthread (smtp_thread, 0, smtp);
}
if(FD_ISSET(pop3_socket,&socket_set)) {
if(pop3_socket!=INVALID_SOCKET
&& FD_ISSET(pop3_socket,&socket_set)) {
client_addr_len = sizeof(client_addr);
client_socket = accept(pop3_socket, (struct sockaddr *)&client_addr
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment