From b9c018d17ecd10c9a860fbce5d8b2e391767c975 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 19 Aug 2024 09:10:03 +0200 Subject: [PATCH] libsmb: Remove a reference to cli_errno() If I see it correctly, this case was already covered by checking the return code of cli_trans() a few lines above. Signed-off-by: Volker Lendecke Reviewed-by: Andreas Schneider --- source3/libsmb/clirap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source3/libsmb/clirap.c b/source3/libsmb/clirap.c index 8124fc6f6cf..6a0dab37e7b 100644 --- a/source3/libsmb/clirap.c +++ b/source3/libsmb/clirap.c @@ -291,8 +291,7 @@ bool cli_NetServerEnum(struct cli_state *cli, char *workgroup, uint32_t stype, res = PULL_LE_U16(rparam, 0); - if (res == 0 || res == ERRmoredata || - (res != -1 && cli_errno(cli) == 0)) { + if (res == 0 || res == ERRmoredata) { char *sname = NULL; int i, count; int converter=SVAL(rparam,2); -- 2.47.3