]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
pam_systemd: add one more assert 14079/head
authorLennart Poettering <lennart@poettering.net>
Tue, 13 Aug 2019 12:14:42 +0000 (14:14 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 19 Nov 2019 14:26:45 +0000 (15:26 +0100)
src/login/pam_systemd.c

index 7884fa247963d4844f28c777b148fadc5f78118a..5de31a9a27e2fd2d78388e7014d373632b54cfdf 100644 (file)
@@ -393,6 +393,7 @@ static int update_environment(pam_handle_t *handle, const char *key, const char
 static bool validate_runtime_directory(pam_handle_t *handle, const char *path, uid_t uid) {
         struct stat st;
 
+        assert(handle);
         assert(path);
 
         /* Just some extra paranoia: let's not set $XDG_RUNTIME_DIR if the directory we'd set it to isn't actually set