OSDN Git Service

LE: Fix GKI exception for 0 length values
authorAndre Eisenbach <andre@broadcom.com>
Wed, 29 May 2013 17:21:39 +0000 (10:21 -0700)
committerMatthew Xie <mattx@google.com>
Wed, 14 Aug 2013 00:39:33 +0000 (00:39 +0000)
commitf052217962d0c06392eb79687820c9469cd6a75a
tree3200c88250af5698837be8afff159b892b4f10cd
parentdda9a3e71119078181638cf3f5a51e38d173f6d4
LE: Fix GKI exception for 0 length values

When a remote device responds to a read request with a 0 length value, a
GKI exception will occur. This patch checks for 0 length values to avoid
the exception and return the correct status to the application
requesting the read.

Change-Id: Idce61c3d2be7072dafe429ab978763b0ee61aed2
btif/src/btif_gatt_client.c