From 958b8c7bd7a3cf1e710faf8c19a528cc94c214fe Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Fri, 12 Oct 2018 04:24:27 +0900 Subject: [PATCH] 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. --- src/core/load-fragment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c index 9f24b47b0b6..f96775ee719 100644 --- a/src/core/load-fragment.c +++ b/src/core/load-fragment.c @@ -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; }