Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: return error code if bf_send() fails
bf_send() calls bf_send_request() and bf_recv_response(), both return non-zero on failure. While the success check is performed on their return value, once the error is logged errno is returned by bf_send(). Errno is not set by bf_send_request() not bf_recv_response(), effectively returning 0 from bf_send() and hiding the error.
- Loading branch information