SHA256
1
0
forked from pool/ipmitool
ipmitool/lanp-Fix-error-response-from-Unsupported-Parameter-lookup.patch.txt
Thomas Renninger bf80395c5f Accepting request 1124073 from home:trenn:branches:systemsmanagement
- bsc#1216556 L3: ipmitool: Unsupported LAN Parameter
                  lookup error SLE15 SP4+
  Fix regression introduced by 351dad24a26f56580ba6
  lan: Add processing of get/set specific CCs:
https://github.com/ipmitool/ipmitool/pull/388
https://github.com/ipmitool/ipmitool/pull/389
  Be aware: Even the pullrequest is open for a while, this patch is not
  integrated in latest mainstream master branch.
A    lanp-Fix-error-response-from-Unsupported-Parameter-lookup.patch.txt
M    enterprise-numbers

OBS-URL: https://build.opensuse.org/request/show/1124073
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/ipmitool?expand=0&rev=65
2023-11-08 08:20:07 +00:00

34 lines
1.2 KiB
Plaintext

From a61349b443c16821e4884cde5ad8c031d619631a Mon Sep 17 00:00:00 2001
From: Daniel Van Allen <dvanallen@google.com>
Date: Wed, 21 Dec 2022 14:38:47 -0500
Subject: [PATCH] lanp: Fix error response from Unsupported Parameter lookup
Return a pointer to the lan_param instead of NULL in the case when the
parameter is not supported.
Resolves ipmitool/ipmitool#388
Signed-off-by Daniel Van Allen <dvanallen@google.com>
---
lib/ipmi_lanp.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/lib/ipmi_lanp.c b/lib/ipmi_lanp.c
index 16c0d9a9..49dc697f 100644
--- a/lib/ipmi_lanp.c
+++ b/lib/ipmi_lanp.c
@@ -236,8 +236,12 @@ get_lan_param_select(struct ipmi_intf *intf, uint8_t chan, int param, int select
/* 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",