summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
Diffstat (limited to 'src/login')
-rw-r--r--src/login/pam-module.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/login/pam-module.c b/src/login/pam-module.c
index d7f412860a..0d387918c7 100644
--- a/src/login/pam-module.c
+++ b/src/login/pam-module.c
@@ -452,6 +452,7 @@ _public_ PAM_EXTERN int pam_sm_open_session(
tty = "";
}
+ /* If this fails vtnr will be 0, that's intended */
if (!isempty(cvtnr))
safe_atou32(cvtnr, &vtnr);