s3-libsmb/passchange.c: remove some cli_nt_error() calls
[gd/samba-autobuild/.git] / source3 / libsmb / passchange.c
index b959bcd519c14f0014cdde3966c920c70fe005c9..83fd9ebf1fc79aec32c4385152a8515f7b271015 100644 (file)
@@ -74,7 +74,6 @@ NTSTATUS remote_password_change(const char *remote_machine, const char *user_nam
                         remote_machine, nt_errstr(result)) == -1) {
                        *err_str = NULL;
                }
-               result = cli_nt_error(cli);
                cli_shutdown(cli);
                return result;
        }
@@ -189,7 +188,6 @@ NTSTATUS remote_password_change(const char *remote_machine, const char *user_nam
                                 remote_machine, nt_errstr(result)) == -1) {
                                *err_str = NULL;
                        }
-                       result = cli_nt_error(cli);
                        cli_shutdown(cli);
                        return result;
                }