From 5aeb8234000964de5016a9e35ab792de737d4940 Mon Sep 17 00:00:00 2001 From: Matthew Johnson Date: Tue, 23 Dec 2008 18:52:19 +0000 Subject: updates to debian packaging --- debian/patches/30_ipmi_lanplus.dpatch | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 debian/patches/30_ipmi_lanplus.dpatch (limited to 'debian/patches/30_ipmi_lanplus.dpatch') diff --git a/debian/patches/30_ipmi_lanplus.dpatch b/debian/patches/30_ipmi_lanplus.dpatch new file mode 100644 index 0000000..55b9f90 --- /dev/null +++ b/debian/patches/30_ipmi_lanplus.dpatch @@ -0,0 +1,26 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 30_ipmi_lanplus.dpatch by "Daniel J Blueman" +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Add null checking to lanplus to fix segv (Closes: #484560) + +@DPATCH@ + +--- ./ipmitool-1.8.8/src/plugins/lanplus/lanplus.c 2006-04-21 17:34:30.000000000 +0100 ++++ ./ipmitool-1.8.8-dan/ipmitool-1.8.8/src/plugins/lanplus/lanplus.c 2008-05-30 18:12:02.000000000 +0100 +@@ -2165,6 +2165,8 @@ + + rsp = ipmi_lanplus_recv_sol(intf); /* Grab the next packet */ ++ if (!rsp) ++ break; + + if (sol_response_acks_packet(rsp, payload)) + break; +@@ -2456,7 +2458,7 @@ + { + struct ipmi_rs * rsp = ipmi_lan_poll_recv(intf); + +- if(rsp->session.authtype != 0) ++ if(rsp && rsp->session.authtype != 0) + { + ack_sol_packet(intf, rsp); -- cgit v1.2.3