summaryrefslogtreecommitdiff
path: root/debian/patches/0120-Fix_Unsupported_Parameter_lookup.patch
blob: 1179a99aeed835a0b9e78363a641c3821e602f58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Description: Fix unsupported LAN parameter lookup command returns an error
Author: Daniel Van Allen <dvanallen@google.com>
Origin: https://github.com/Cray-HPE/ipmitool/commit/b7c0d66cd6b9eaf45648f6b2651b6ef5158de811
Bug: https://github.com/ipmitool/ipmitool/issues/388
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1061770
Forwarded: not-needed
Last-Update: 2024-07-05
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: trunk/lib/ipmi_lanp.c
===================================================================
--- trunk.orig/lib/ipmi_lanp.c
+++ trunk/lib/ipmi_lanp.c
@@ -236,8 +236,12 @@ get_lan_param_select(struct ipmi_intf *i
 		/* We treat them as valid but empty response */
 		p->data = NULL;
 		p->data_len = 0;
-		rc = p;
-		/* fall through */
+		lprintf(LOG_INFO, "Get LAN Parameter '%s' command unsupported: %s",
+			p->desc,
+			specific_val2str(rsp->ccode,
+			                 get_lan_cc_vals,
+			                 completion_code_vals));
+		return p;
 	default:
 		/* other completion codes are treated as error */
 		lprintf(LOG_INFO, "Get LAN Parameter '%s' command failed: %s",