mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
udp: fix missing check
This commit is contained in:
@@ -100,7 +100,7 @@ void udp_process(netdev_t *netdev, void *buffer, uint32_t peer) {
|
||||
spinlock_acquire(&portlock);
|
||||
|
||||
udpsocket_t *socket = (udpsocket_t *)ports[dstport];
|
||||
if (socket)
|
||||
if (socket && (socket->socket.shutdown & SOCKET_SHUTDOWN_READ) == 0)
|
||||
__atomic_add_fetch(&socket->packetsprocessing, 1, __ATOMIC_SEQ_CST);
|
||||
|
||||
spinlock_release(&portlock);
|
||||
|
||||
Reference in New Issue
Block a user