summaryrefslogtreecommitdiff
path: root/debian/patches/fix_sdr_segfault
diff options
context:
space:
mode:
authorLuk Claes <luk@debian.org>2011-09-19 19:36:25 +0200
committerLuk Claes <luk@debian.org>2011-09-19 19:36:25 +0200
commit87e408db30cef024d3843fc5d938fbef29adb633 (patch)
tree5d93025babe312ffa001435e793d61332775fc80 /debian/patches/fix_sdr_segfault
parent82d2e4f7ac5bce298f782bff952486045ce37e0e (diff)
Only approach rsp->data when rsp is set (Closes: #637423).
Diffstat (limited to 'debian/patches/fix_sdr_segfault')
-rw-r--r--debian/patches/fix_sdr_segfault13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/patches/fix_sdr_segfault b/debian/patches/fix_sdr_segfault
new file mode 100644
index 0000000..b9680e0
--- /dev/null
+++ b/debian/patches/fix_sdr_segfault
@@ -0,0 +1,13 @@
+diff -Nur ipmitool-1.8.11/lib/ipmi_sdr.c ipmitool-1.8.11.fix/lib/ipmi_sdr.c
+--- ipmitool-1.8.11/lib/ipmi_sdr.c 2009-02-25 21:38:52.000000000 +0100
++++ ipmitool-1.8.11.fix/lib/ipmi_sdr.c 2011-08-10 18:21:26.000000000 +0200
+@@ -1828,7 +1828,7 @@
+ printf("ns | %2d.%1d | ",
+ sensor->entity.id,
+ sensor->entity.instance);
+- if (IS_SCANNING_DISABLED(rsp->data[1]))
++ if (rsp && IS_SCANNING_DISABLED(rsp->data[1]))
+ printf("Disabled");
+ else
+ printf("No Reading");
+