Merge pull request #2735 from sworleys/Netlink-Next-Fault

zebra: Check for netlink message next fault
This commit is contained in:
Russ White 2018-07-29 07:58:01 -04:00 committed by GitHub
commit ddd4a7a4cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -638,7 +638,7 @@ int netlink_parse_info(int (*filter)(struct nlmsghdr *, ns_id_t, int),
read_in++;
for (h = (struct nlmsghdr *)buf;
NLMSG_OK(h, (unsigned int)status);
(status >= 0 && NLMSG_OK(h, (unsigned int)status));
h = NLMSG_NEXT(h, status)) {
/* Finish of reading. */
if (h->nlmsg_type == NLMSG_DONE)