Commit 9345e8f8 authored by Natanael Copa's avatar Natanael Copa
Browse files

nlplug-findfs: add warning about skipped netlink messages

parent 7095d01d
......@@ -1396,8 +1396,10 @@ int main(int argc, char *argv[])
continue;
err(1, "recvmsg");
}
if (len < 32 || len >= sizeof(buf))
if (len < 32 || len >= sizeof(buf)) {
warnx("Skipping message due to size=%zu", len);
continue;
}
total_bytes += len;
chdr = CMSG_FIRSTHDR(&hdr);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment