mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
tcp: fix possible null dereference
This commit is contained in:
@@ -1764,8 +1764,9 @@ static size_t tcp_datacount(socket_t *socket) {
|
||||
|
||||
count = RINGBUFFER_DATACOUNT(&tcpsocket->tcb->receivebuffer);
|
||||
|
||||
cleanup:
|
||||
MUTEX_RELEASE(&tcpsocket->tcb->mutex);
|
||||
|
||||
cleanup:
|
||||
MUTEX_RELEASE(&socket->mutex);
|
||||
return count;
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
name=astral
|
||||
revision=15
|
||||
revision=16
|
||||
from_source=astral
|
||||
imagedeps="build-essential nasm"
|
||||
hostdeps="xgcc xbinutils limine"
|
||||
|
||||
Reference in New Issue
Block a user