Fix up 'net ads join' to delete and rejoin if the account already exists.
[ira/wip.git] / source3 / libsmb / cliconnect.c
index a3b22485cf7e744a7fde6d9effb40996ef91caab..7649a88ffdd56778ccb7583778f2b387baf2252f 100644 (file)
@@ -1257,7 +1257,7 @@ again:
        if (!cli_negprot(cli))
        {
                DEBUG(1,("failed negprot\n"));
-               nt_status = cli_nt_error(cli);
+               nt_status = NT_STATUS_UNSUCCESSFUL;
                cli_shutdown(cli);
                return nt_status;
        }