Message ID | 20140126085446.GA4130@localhost |
---|---|
State | Not Applicable |
Headers | show |
diff --git a/src/nlmsg.c b/src/nlmsg.c index fdb7af8..0a414a7 100644 --- a/src/nlmsg.c +++ b/src/nlmsg.c @@ -484,14 +484,15 @@ EXPORT_SYMBOL(mnl_nlmsg_batch_stop); bool mnl_nlmsg_batch_next(struct mnl_nlmsg_batch *b) { struct nlmsghdr *nlh = b->cur; + bool ret = true; if (b->buflen + nlh->nlmsg_len > b->limit) { b->overflow = true; - return false; + ret = false; } b->cur = b->buf + b->buflen + nlh->nlmsg_len; b->buflen += nlh->nlmsg_len; - return true; + return ret; } EXPORT_SYMBOL(mnl_nlmsg_batch_next);