Commit a34faf57 authored by Lukas Nykryn's avatar Lukas Nykryn Committed by Zbigniew Jędrzejewski-Szmek
Browse files

login: check return of parse_pid and parse_uid

parent b5fb3789
......@@ -219,11 +219,17 @@ int inhibitor_load(Inhibitor *i) {
if (mm >= 0)
i->mode = mm;
if (uid)
parse_uid(uid, &i->uid);
if (uid) {
r = parse_uid(uid, &i->uid);
if (r < 0)
goto finish;
}
if (pid)
parse_pid(pid, &i->pid);
if (pid) {
r = parse_pid(pid, &i->pid);
if (r < 0)
goto finish;
}
if (who) {
cc = cunescape(who);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment