Description: Fix unsupported LAN parameter lookup command returns an error Author: Daniel Van Allen 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",