summaryrefslogtreecommitdiffstats
path: root/src/nlapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nlapi.c')
-rw-r--r--src/nlapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nlapi.c b/src/nlapi.c
index 91865f5..52025ba 100644
--- a/src/nlapi.c
+++ b/src/nlapi.c
@@ -86,7 +86,7 @@ int nlapi_work(int block) {
for (; bytes > 0; p = NLMSG_NEXT(p, bytes)) {
struct callback_info *c;
- if (!NLMSG_OK(p, bytes) || bytes < sizeof(struct nlmsghdr) || bytes < p->nlmsg_len) {
+ if (!NLMSG_OK(p, bytes) || (size_t) bytes < sizeof(struct nlmsghdr) || (size_t) bytes < p->nlmsg_len) {
daemon_log(LOG_ERR, "NLAPI: Packet too small or truncated!\n");
return -1;
}