Diff between 6ea2387710adfe1f1ac8bc42225da63416e33522 and 3ef920bf523b4f43f9f6cb81152a1bc2ba864992

Changed Files

File Additions Deletions Status
src/attrib-server.c +1 -1 modified

Full Patch

diff --git a/src/attrib-server.c b/src/attrib-server.c
index 5f353df..f2674aa 100644
--- a/src/attrib-server.c
+++ b/src/attrib-server.c
@@ -856,7 +856,7 @@ static uint16_t read_blob(struct gatt_channel *channel, uint16_t handle,
 
 	a = l->data;
 
-	if (a->len <= offset)
+	if (a->len < offset)
 		return enc_error_resp(ATT_OP_READ_BLOB_REQ, handle,
 					ATT_ECODE_INVALID_OFFSET, pdu, len);