From a5e01116f8b28f7ff2e0b33e0ed837be448a43d9 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 5 Dec 2020 18:23:51 +0100 Subject: Some casual network fixes --- kernel/features/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kernel') 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) -- cgit v1.2.3