mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 10:48:02 +00: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
|
@ -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