s3:utils: Remove pointless if-clause for remote_machine
[bbaumbach/samba-autobuild/.git] / source3 / utils / smbpasswd.c
index 1f43f4fa75ed9891c4f7ef24b8a68f2375237b64..3136de6a23dd44ed05f5757c68a64e5914ebb53e 100644 (file)
@@ -570,12 +570,10 @@ static int process_nonroot(int local_flags)
                domain = get_global_sam_name();
        }
 
-       if (remote_machine != NULL) {
-               old_pw = get_pass("Old SMB password:",stdin_passwd_get);
-               if (old_pw == NULL) {
-                       fprintf(stderr, "Unable to get old password.\n");
-                       exit(1);
-               }
+       old_pw = get_pass("Old SMB password:",stdin_passwd_get);
+       if (old_pw == NULL) {
+               fprintf(stderr, "Unable to get old password.\n");
+               exit(1);
        }
 
        if (!new_passwd) {