diff options
author | Alessandro Bono <alessandro.bono369@gmail.com> | 2022-09-29 11:26:45 +0200 |
---|---|---|
committer | Ray Strode <halfline@gmail.com> | 2022-10-27 19:28:33 +0000 |
commit | 0eb597dd3b6e3b0deb431a37a8048164a793097a (patch) | |
tree | 2f3e64509db42b76997b0658199e3308c7ababc6 /daemon | |
parent | 3a8e7d2eb063f9604c11d52a4c0bed67eb5d8205 (diff) | |
download | gdm-0eb597dd3b6e3b0deb431a37a8048164a793097a.tar.gz |
gdm-session-worker: Assert that service cannot be NULL
pam_start() requires the first, third and fourth arguments to not
be NULL. Assert that the first one is not NULL.
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/gdm-session-worker.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/daemon/gdm-session-worker.c b/daemon/gdm-session-worker.c index 2a39d632..88882380 100644 --- a/daemon/gdm-session-worker.c +++ b/daemon/gdm-session-worker.c @@ -1157,6 +1157,7 @@ gdm_session_worker_initialize_pam (GdmSessionWorker *worker, int error_code; char tty_string[256]; + g_assert (service != NULL); g_assert (worker->pam_handle == NULL); g_debug ("GdmSessionWorker: initializing PAM; service=%s username=%s seat=%s", |