chiark / gitweb /
systemctl: always null-terminate the password
[elogind.git] / src / ask-password-api.c
index dd54fb6abf22a0680f0849b67fd31f138a5a180a..af1b611f2727e1f57561dd7eb3ba0049e0deacbb 100644 (file)
@@ -179,8 +179,6 @@ int ask_password_tty(
                 }
         }
 
-        if (ttyfd >= 0)
-
         passphrase[p] = 0;
 
         if (!(*_passphrase = strdup(passphrase))) {