summaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/fix_sdr_segfault13
-rw-r--r--debian/patches/series1
2 files changed, 14 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");
+
diff --git a/debian/patches/series b/debian/patches/series
index 8a6e84e..ca8572e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
99_readme_typo
passwd_option
+fix_sdr_segfault