mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 16:37:19 +09:00
core: fix member access within null pointer
config_parse_tasks_max() is also used for parsing system.conf or user.conf. In that case, userdata is NULL. Fixes #10362.
This commit is contained in:
committed by
Lennart Poettering
parent
8e04444385
commit
958b8c7bd7
@@ -3093,7 +3093,7 @@ int config_parse_tasks_max(
|
||||
int r;
|
||||
|
||||
if (isempty(rvalue)) {
|
||||
*tasks_max = u->manager->default_tasks_max;
|
||||
*tasks_max = u ? u->manager->default_tasks_max : UINT64_MAX;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user