Return code unchecked during publish

Bug #1007597 reported by Steven Lougheed on 2012-06-01
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released

Bug Description

In _mosquitto_handle_publish (read_handle.c line 120), the return code from _mosquitto_read_bytes is not saved. The next line attempts to look at the return code and cleanup if the call fails, but this condition can never be met.

_mosquitto_read_bytes(&mosq->in_packet, message->msg.payload, message->msg.payloadlen);
rc = _mosquitto_read_bytes(&mosq->in_packet, message->msg.payload, message->msg.payloadlen);

Roger Light (roger.light) wrote :

Thanks for the report, and well spotted. I've commited the change:

Changed in mosquitto:
milestone: none → 0.16
status: New → Fix Committed
Changed in mosquitto:
milestone: 0.16 → 1.0
Changed in mosquitto:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers