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:
Olaf Bergmann committed 2017-11-03 15:15:06 +01:00
1 parent 9bf7032232
commit e5064a47e7
1 file changed
+2 -3
+2 -3
View File
@@ -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;