aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>2007-01-22 09:56:03 +0800
committerjdp <jdp@FreeBSD.org>2007-01-22 09:56:03 +0800
commit0a442a86d495c1256ad43002b88037b3ff3cde94 (patch)
tree8ccc64acadbcabcb17638e82b01032e8d9e2e7f2 /sysutils
parent4a3540deb4a0a64dccc7e7de773ca58281beeba3 (diff)
downloadfreebsd-ports-gnome-0a442a86d495c1256ad43002b88037b3ff3cde94.tar.gz
freebsd-ports-gnome-0a442a86d495c1256ad43002b88037b3ff3cde94.tar.zst
freebsd-ports-gnome-0a442a86d495c1256ad43002b88037b3ff3cde94.zip
Avoid a NULL pointer dereference when using serial-over-LAN (SOL).
I have submitted this patch to the ipmitool-devel mailing list. Approved by: frolov@riss-telecom.ru (maintainer)
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/ipmitool/files/patch-lanplus.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sysutils/ipmitool/files/patch-lanplus.c b/sysutils/ipmitool/files/patch-lanplus.c
new file mode 100644
index 000000000000..1c1de1436045
--- /dev/null
+++ b/sysutils/ipmitool/files/patch-lanplus.c
@@ -0,0 +1,11 @@
+--- src/plugins/lanplus/lanplus.c.orig Fri Apr 21 09:34:30 2006
++++ src/plugins/lanplus/lanplus.c Thu Jan 18 21:12:54 2007
+@@ -2456,7 +2456,7 @@
+ {
+ struct ipmi_rs * rsp = ipmi_lan_poll_recv(intf);
+
+- if(rsp->session.authtype != 0)
++ if(rsp != NULL && rsp->session.authtype != 0)
+ {
+ ack_sol_packet(intf, rsp);
+