mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-07 08:46:36 +08:00
pbuf_ref: assert-check for 'ref' overflow
This commit is contained in:
@@ -828,6 +828,7 @@ pbuf_ref(struct pbuf *p)
|
||||
/* pbuf given? */
|
||||
if (p != NULL) {
|
||||
SYS_ARCH_INC(p->ref, 1);
|
||||
LWIP_ASSERT("pbuf ref overflow", p->ref > 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user