mirror of
https://github.com/opnsense/src.git
synced 2026-06-13 10:40:19 -04:00
libpfct: fix incorrect array check
Reported by: Coverity Scan
CID: 1523771
Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
777a4702c5
commit
306d3fb23d
1 changed files with 2 additions and 2 deletions
|
|
@ -965,8 +965,8 @@ snl_add_msg_attr_rule_labels(struct snl_writer *nw, uint32_t type, const char la
|
|||
|
||||
off = snl_add_msg_attr_nested(nw, type);
|
||||
|
||||
while (labels[i][0] != 0 &&
|
||||
i < PF_RULE_MAX_LABEL_COUNT) {
|
||||
while (i < PF_RULE_MAX_LABEL_COUNT &&
|
||||
labels[i][0] != 0) {
|
||||
snl_add_msg_attr_string(nw, PF_LT_LABEL, labels[i]);
|
||||
i++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue