Skip to content
Commit a248193a authored by Marcel Holtmann's avatar Marcel Holtmann Committed by Adrian Bunk
Browse files

[Bluetooth] Fix uninitialized return value for RFCOMM sendmsg()



When calling send() with a zero length parameter on a RFCOMM socket
it returns a positive value. In this rare case the variable err is
used uninitialized and unfortunately its value is returned.

Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
parent 79d1a786
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment