aboutsummaryrefslogtreecommitdiff
path: root/net/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/net.c')
-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;
}