summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/gradm/files')
-rw-r--r--sys-apps/gradm/files/gradm-2.1.13.200902232204-fix-segfault-in-newlearn.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/sys-apps/gradm/files/gradm-2.1.13.200902232204-fix-segfault-in-newlearn.patch b/sys-apps/gradm/files/gradm-2.1.13.200902232204-fix-segfault-in-newlearn.patch
new file mode 100644
index 000000000000..e72aaeb8df6f
--- /dev/null
+++ b/sys-apps/gradm/files/gradm-2.1.13.200902232204-fix-segfault-in-newlearn.patch
@@ -0,0 +1,19 @@
+Added-By: Gordon Malm <gengor@gentoo.org>
+
+Fix segmentation fault in gradm newlearn.
+
+Reference:
+http://bugs.gentoo.org/show_bug.cgi?id=281512
+http://forums.grsecurity.net/viewtopic.php?f=3&t=2126
+
+--- a/gradm_newlearn.c
++++ b/gradm_newlearn.c
+@@ -1204,7 +1204,7 @@ show_ips:
+ display_ip_tree(connect, GR_IP_CONNECT, stream);
+ else
+ fprintf(stream, "\tconnect\tdisabled\n");
+- if (node->subject->inaddr_any_override) {
++ if (node->subject != NULL && node->subject->inaddr_any_override) {
+ struct in_addr addr;
+ addr.s_addr = node->subject->inaddr_any_override;
+ fprintf(stream, "\tip_override\t%s\n", inet_ntoa(addr));