aboutsummaryrefslogtreecommitdiff
path: root/kernel/features/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/features/net.c')
-rw-r--r--kernel/features/net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/features/net.c b/kernel/features/net.c
index ab747e4..be36f14 100644
--- a/kernel/features/net.c
+++ b/kernel/features/net.c
@@ -732,7 +732,7 @@ struct socket *net_open(enum socket_type type)
int net_close(struct socket *socket)
{
- if (!net_installed())
+ if (!net_installed() || !socket)
return 1;
if (socket->state == S_CLOSING)