diff options
| -rw-r--r-- | hcid/dbus-test.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/hcid/dbus-test.c b/hcid/dbus-test.c index 7eed0f30..9a1a14e7 100644 --- a/hcid/dbus-test.c +++ b/hcid/dbus-test.c @@ -263,7 +263,7 @@ static gboolean l2raw_data_callback(GIOChannel *io, GIOCondition cond, struct au  	if (cmd->code != L2CAP_INFO_RSP)  		return TRUE; -	if (ret < expected) { +	if (ret < L2CAP_CMD_HDR_SIZE + L2CAP_INFO_RSP_SIZE) {  		error("Too little data for l2cap info response");  		goto failed;  	} | 
