From: Volker Lendecke Date: Thu, 9 Mar 2023 16:49:50 +0000 (+0100) Subject: smbd: Avoid a direct reference to smb_messages[] X-Git-Tag: talloc-2.4.1~117 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9907fd3e293d3b6ac9b621c8159cbcd94b75fdae;p=thirdparty%2Fsamba.git smbd: Avoid a direct reference to smb_messages[] That's what we have smb_fn_name() for Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/smb1_process.c b/source3/smbd/smb1_process.c index a25ae9d2767..dd1ff7d4766 100644 --- a/source3/smbd/smb1_process.c +++ b/source3/smbd/smb1_process.c @@ -2400,8 +2400,7 @@ static bool smbd_echo_reply(struct smbd_echo_state *state, req.inbuf = inbuf; DEBUG(10, ("smbecho handler got cmd %d (%s)\n", (int)req.cmd, - smb_messages[req.cmd].name - ? smb_messages[req.cmd].name : "unknown")); + smb_fn_name(req.cmd))); if (req.cmd != SMBecho) { return false;