Otherwise it might happen that a configured file location is not taken
into account. A NULL value would lead to default file location.
Gbp-Pq: Topic upstream-master
Gbp-Pq: Name Treat-out-of-memory-as-error.patch
return PAM_SYSTEM_ERR;
struct ll2_context *context = ll2_new_context(lastlog2_path);
+ if (context == NULL)
+ return PAM_SYSTEM_ERR;
if (ll2_write_entry (context, user, ll_time, tty, rhost,
pam_service, &error) != 0) {
if (error) {
return retval;
struct ll2_context *context = ll2_new_context(lastlog2_path);
+ if (context == NULL)
+ return PAM_SYSTEM_ERR;
if (ll2_read_entry (context, user, &ll_time, &tty, &rhost,
&service, &error) != 0) {
if (errno == ENOENT)