Return to recv.c CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / mqtt / src |
version 1.1.2.2, 2011/11/22 15:25:19 | version 1.2, 2012/01/27 15:05:38 |
---|---|
Line 57 mqttDispatcher(mqtt_cb_t * __restrict cb, mqtt_msg_t * | Line 57 mqttDispatcher(mqtt_cb_t * __restrict cb, mqtt_msg_t * |
if (!cb || !buf) | if (!cb || !buf) |
return -1; | return -1; |
if (buf->msg_len < sizeof(struct mqtthdr)) { | if (buf->msg_len < sizeof(struct mqtthdr)) { |
mqtt_SetErr(EBADMSG, "Error:: message is too small ..."); | mqtt_SetErr(EINVAL, "Error:: message is too small ..."); |
return -1; | return -1; |
} | } |