From 6af0ad890697b5e6006b6937c56478aa8df7b7c4 Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Sat, 17 Jul 2010 18:02:17 +0200 Subject: [PATCH] bugfix: NULL pointer dereference in coap_remove_transaction --- net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net.c b/net.c index dd66c08f..3cd52f04 100644 --- a/net.c +++ b/net.c @@ -451,7 +451,7 @@ int coap_remove_transaction( coap_queue_t **queue, coap_tid_t id ) { coap_queue_t *p, *q; - if ( !queue ) + if ( !queue || !*queue) return 0; /* replace queue head if PDU's time is less than head's time */