Skip to content
Commit 8a75a4b9 authored by Robert Lubos's avatar Robert Lubos Committed by Carles Cufí
Browse files

net: shell: Fix array indexing with dynamic iface command



Network interface numbering starts from 1, therefore when accessing
help/index array, the interface index should not be used directly, but
rather decremented by 1, to avoid out-of-bound access on those arrays.

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
parent 23789197
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment