]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libsmb: Remove a reference to cli_errno()
authorVolker Lendecke <vl@samba.org>
Mon, 19 Aug 2024 07:10:03 +0000 (09:10 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 20 Aug 2024 09:34:40 +0000 (09:34 +0000)
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 <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/libsmb/clirap.c

index 8124fc6f6cf9de2e658cda21f672ae32e2b8225e..6a0dab37e7b6d436f849b1086c1e7c562c3b2e64 100644 (file)
@@ -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);