From e040d425d11f6ba572898f7c763e0dc50ba40f09 Mon Sep 17 00:00:00 2001 From: Gordon Malm Date: Fri, 21 Aug 2009 18:56:27 +0000 Subject: 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) --- ...2.1.13.200902232204-fix-segfault-in-newlearn.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 sys-apps/gradm/files/gradm-2.1.13.200902232204-fix-segfault-in-newlearn.patch (limited to 'sys-apps/gradm/files') 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 + +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)); -- cgit v1.2.3-65-gdbad