1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-13 02:51:50 +00:00
openmptcprouter-feeds/xtables-addons/patches/301-fix-build-with-linux-6.11.patch
2024-11-13 16:58:07 +01:00

15 lines
428 B
Diff

--- a/extensions/rtsp/nf_conntrack_rtsp.c
+++ b/extensions/rtsp/nf_conntrack_rtsp.c
@@ -735,8 +735,12 @@ init(void)
}
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 10, 0)
strlcpy(hlpr->name, tmpname, sizeof(hlpr->name));
#else
+ strscpy(hlpr->name, tmpname, sizeof(hlpr->name));
+#endif
+#else
hlpr->name = tmpname;
#endif
pr_debug("port #%d: %d\n", i, ports[i]);