summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGordon Malm <gengor@gentoo.org>2009-08-21 18:56:27 +0000
committerGordon Malm <gengor@gentoo.org>2009-08-21 18:56:27 +0000
commite040d425d11f6ba572898f7c763e0dc50ba40f09 (patch)
treec142759b892ae749d032f4a3c4c9b0809205865d /sys-apps/gradm/files
parentadd eject patch to 102-r1, bug 282218 (diff)
downloadgentoo-2-e040d425d11f6ba572898f7c763e0dc50ba40f09.tar.gz
gentoo-2-e040d425d11f6ba572898f7c763e0dc50ba40f09.tar.bz2
gentoo-2-e040d425d11f6ba572898f7c763e0dc50ba40f09.zip
Revision bump - fix bug #281512. Thanks to Matthew Thode for reporting and providing a patch.
(Portage version: 2.1.6.13/cvs/Linux i686, RepoMan options: --force)
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));