From 7b54ddd828068a1bdbb2bc88bf08a43f39a7a9b4 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Sun, 4 Mar 2007 17:21:43 +0000 Subject: [PATCH] Corrected patch to bug #19168 --- src/core/pbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/pbuf.c b/src/core/pbuf.c index 73e4e6f4..51ae6f5a 100644 --- a/src/core/pbuf.c +++ b/src/core/pbuf.c @@ -599,7 +599,7 @@ pbuf_free(struct pbuf *p) /* all pbufs in a chain are referenced at least once */ LWIP_ASSERT("pbuf_free: p->ref > 0", p->ref > 0); /* decrease reference count (number of pointers to pbuf) */ - ref = p->ref--; + ref = --(p->ref); SYS_ARCH_UNPROTECT(old_level); /* this pbuf is no longer referenced to? */ if (ref == 0) {