diff --git a/src/core/pbuf.c b/src/core/pbuf.c index c2a89e37..3c515b7c 100644 --- a/src/core/pbuf.c +++ b/src/core/pbuf.c @@ -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); } }