From: Lennart Poettering Date: Tue, 13 Aug 2019 12:14:42 +0000 (+0200) Subject: pam_systemd: add one more assert X-Git-Tag: v244-rc1~20^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F14079%2Fhead;p=thirdparty%2Fsystemd.git pam_systemd: add one more assert --- diff --git a/src/login/pam_systemd.c b/src/login/pam_systemd.c index 7884fa24796..5de31a9a27e 100644 --- a/src/login/pam_systemd.c +++ b/src/login/pam_systemd.c @@ -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