From 8e6e6d67bcf371246583e16b05be15fa4ee2abe2 Mon Sep 17 00:00:00 2001 From: jacopo grandi Date: Tue, 2 Mar 2021 12:33:02 +0100 Subject: design expansion, raid concept --- net/net.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'net/net.c') 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; } -- cgit v1.2.3-54-g00ecf