summaryrefslogtreecommitdiff
path: root/kernel/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/socket.c')
-rw-r--r--kernel/socket.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/socket.c b/kernel/socket.c
index e0d99a9..bab80c5 100644
--- a/kernel/socket.c
+++ b/kernel/socket.c
@@ -596,6 +596,7 @@ int tcp_create_fd(int is_nonblock) {
if (!con) {
return -ENOMEM;
}
+ memset(con, 0, sizeof(struct TcpConnection));
con->state = TCP_STATE_CLOSED;
con->should_send_ack = 0;