pbuf_ref: assert-check for 'ref' overflow

This commit is contained in:
goldsimon 2017-02-23 20:16:51 +01:00
parent e94e2da3ec
commit 76763c9bcd

View File

@ -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);
}
}