mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 06:48:18 -07:00
* EAPI=6 * add patch from Chad Joan for compilation with musl libc * remove obsolete pkg_postinst phase Gentoo-Bug: https://bugs.gentoo.org/592912 Gentoo-Bug: https://bugs.gentoo.org/278653 Closes: https://github.com/gentoo/gentoo/pull/2541 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
13 lines
571 B
Diff
13 lines
571 B
Diff
diff -urN src/nlapi.c src/nlapi.c
|
|
--- a/src/nlapi.c
|
|
+++ b/src/nlapi.c
|
|
@@ -86,7 +86,7 @@
|
|
for (; bytes > 0; p = NLMSG_NEXT(p, bytes)) {
|
|
struct callback_info *c;
|
|
|
|
- if (!NLMSG_OK(p, bytes) || (size_t) bytes < sizeof(struct nlmsghdr) || (size_t) bytes < p->nlmsg_len) {
|
|
+ if (!NLMSG_OK(p, (size_t) bytes) || (size_t) bytes < sizeof(struct nlmsghdr) || (size_t) bytes < (size_t) p->nlmsg_len) {
|
|
daemon_log(LOG_ERR, "NLAPI: Packet too small or truncated!\n");
|
|
return -1;
|
|
}
|