From: Matthias Kruk Date: Fri, 4 Oct 2019 06:39:33 +0000 (+0900) Subject: Initialize a new socket's refcount to 1 X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=1fe6f898aa5d1a50530001a08663a892e749f8d8;p=corax Initialize a new socket's refcount to 1 --- diff --git a/kernel/core/socket.c b/kernel/core/socket.c index d5528e4..8d05050 100644 --- a/kernel/core/socket.c +++ b/kernel/core/socket.c @@ -130,6 +130,7 @@ int socreate(int dom, int type, int proto) } so->so_type = type; + so->so_refs = 1; #if 0 so->so_proto = psw; #endif