Do not close uninitialized socket.

This commit is contained in:
2019-10-12 23:53:40 +01:00
parent d032af0d58
commit 782c2b1e20

1
main.c
View File

@@ -114,7 +114,6 @@ int main()
if(!pkt_server_hello)
{
printf("Fatal error %d allocating memory.\n", errno);
close(cli_sock);
close(sockfd);
return 1;
}