diff options
author | Marvin Borner | 2020-12-05 18:23:51 +0100 |
---|---|---|
committer | Marvin Borner | 2020-12-05 18:23:51 +0100 |
commit | a5e01116f8b28f7ff2e0b33e0ed837be448a43d9 (patch) | |
tree | 2e2362aa408f2d015c10720242abca3ac141169d /kernel | |
parent | cd2dbb2e146562c9e37c614bb09a24f7fbf135e0 (diff) |
Some casual network fixes
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/features/net.c | 2 |
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) |