diff options
author | jdp <jdp@FreeBSD.org> | 2007-01-22 09:56:03 +0800 |
---|---|---|
committer | jdp <jdp@FreeBSD.org> | 2007-01-22 09:56:03 +0800 |
commit | 0a442a86d495c1256ad43002b88037b3ff3cde94 (patch) | |
tree | 8ccc64acadbcabcb17638e82b01032e8d9e2e7f2 /sysutils/ipmitool | |
parent | 4a3540deb4a0a64dccc7e7de773ca58281beeba3 (diff) | |
download | freebsd-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/ipmitool')
-rw-r--r-- | sysutils/ipmitool/files/patch-lanplus.c | 11 |
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); + |