blobmsg: fix length in blobmsg_check_array
authorFelix Fietkau <nbd@nbd.name>
Mon, 25 May 2020 11:44:20 +0000 (13:44 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 26 May 2020 08:06:53 +0000 (10:06 +0200)
commitc2fc622b771f679e8f55060ac60cfe02b9a80995
tree34eccc81f91b77b3a1f494232b1d3c004db38928
parentcf2e8eb485abc30ed8acc51ba5cb50d2bbc8e3d1
blobmsg: fix length in blobmsg_check_array

blobmsg_check_array_len expects the length of the full attribute buffer,
not just the data length.
Due to other missing length checks (fixed in the next commit), this did
not show up as a test failure

Signed-off-by: Felix Fietkau <nbd@nbd.name>
blobmsg.c