aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorjacopo grandi <jak.sk8@hotmail.it>2021-03-02 12:33:02 +0100
committerjacopo grandi <jak.sk8@hotmail.it>2021-03-02 12:33:02 +0100
commit8e6e6d67bcf371246583e16b05be15fa4ee2abe2 (patch)
treec5198d34b766b18e792ac313ba32d74af2267949 /net
parent5c5c465dc0c98774d72f1cdc203ac515fd1d2735 (diff)
design expansion, raid concept
Diffstat (limited to 'net')
-rw-r--r--net/net.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/net.c b/net/net.c
index 5088417..5409152 100644
--- a/net/net.c
+++ b/net/net.c
@@ -89,6 +89,8 @@ int net_client_connect (net_client *c, char ip[], int port) {
{
p_socket_address_free (c->addr_server);
p_socket_free (c->socket);
+ c->socket = NULL;
+ c->addr_server = NULL;
printf("error client socket freed\n");
return 1;
}