command-nas: fix out-of-bounds read
authorDaniel Golle <daniel@makrotopia.org>
Mon, 22 Nov 2021 01:19:05 +0000 (01:19 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 22 Nov 2021 01:23:33 +0000 (01:23 +0000)
commitb2c53dc67a6a509f6e6d7f6ba540c55bbc34e988
tree51bf394349e952f7688b65ef93ae32303cfbe6dd
parent20cd9075df2dffd4db0aa05addec31733af4f6cb
command-nas: fix out-of-bounds read

Limit iteration to number of array members fixing potential
out-of-bounds read.

Coverity CID: 1493471 Out-of-bounds read
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
commands-nas.c