mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-24 21:34:08 +03: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:
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user