]> git.corax.cc Git - corax/commitdiff
Initialize a new socket's refcount to 1
authorMatthias Kruk <m@m10k.eu>
Fri, 4 Oct 2019 06:39:33 +0000 (15:39 +0900)
committerMatthias Kruk <m@m10k.eu>
Fri, 4 Oct 2019 06:39:33 +0000 (15:39 +0900)
kernel/core/socket.c

index d5528e40687eb9ca4bfda9f52df47b5e92bd2510..8d05050417fcc5a4948ef74dd62559f813bdff43 100644 (file)
@@ -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