must allow writes smaller than max attribute length

pull/13449/head
Paul Szczeanek 2020-08-18 08:58:11 +01:00
parent 83fa12183b
commit 1b78b46a73
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ void attsProcPrepWriteReq(attsCcb_t *pCcb, uint16_t len, uint8_t *pPacket)
}
/* verify write length, fixed length */
else if (((pAttr->settings & ATTS_SET_VARIABLE_LEN) == 0) &&
(writeLen != pAttr->maxLen))
(writeLen > pAttr->maxLen))
{
err = ATT_ERR_LENGTH;
}