mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-08 18:32:53 +03:00
client.c: removed dead code in message_handler()
Coverity scan has detected dead code that has been removed in this change. (CID 1382575)
This commit is contained in:
1 parent
9bf7032232
commit
e5064a47e7
1 file changed
+2
-3
+2
-3
@@ -528,9 +528,8 @@ message_handler(struct coap_context_t *ctx,
|
||||
|
||||
}
|
||||
|
||||
/* finally send new request, if needed */
|
||||
if (pdu && coap_send(session, pdu) == COAP_INVALID_TID)
|
||||
debug("message_handler: error sending response");
|
||||
/* any pdu that has been created in this function must be sent by now */
|
||||
assert(pdu == NULL);
|
||||
|
||||
/* our job is done, we can exit at any time */
|
||||
ready = coap_check_option(received, COAP_OPTION_SUBSCRIPTION, &opt_iter) == NULL;
|
||||
|
||||
Reference in new issue
Block a user