parse_lag_hash() make use of cmd_words_len

This commit is contained in:
René van Dorst
2026-04-18 19:35:51 +02:00
parent 56e0d0a5d1
commit 2acf2499d1
+1 -1
View File
@@ -295,7 +295,7 @@ void parse_lag_hash(void)
group = cmd_buffer[cmd_words_b[1]] - '0';
uint8_t w = 2;
while (cmd_words_b[w + 1] > 0) {
while (w < cmd_words_len) {
if (cmd_compare(w, "spa"))
hash |= LAG_HASH_SOURCE_PORT_NUMBER;
else if (cmd_compare(w, "smac"))