Fix inline service dependencies.

Fixes #5726
This commit is contained in:
Gunnar Beutner 2014-03-07 12:14:28 +01:00
parent 18b9129151
commit bf1d9bf6ed
1 changed files with 2 additions and 2 deletions

View File

@ -170,7 +170,7 @@ void Service::UpdateSlaveDependencies(void)
if (pass == 0)
descs = GetHost()->GetDependencyDescriptions();
else
GetDependencyDescriptions();
descs = GetDependencyDescriptions();
if (!descs || descs->GetLength() == 0)
continue;
@ -180,7 +180,7 @@ void Service::UpdateSlaveDependencies(void)
if (pass == 0)
item = ConfigItem::GetObject("Host", GetHost()->GetName());
else
ConfigItem::GetObject("Service", GetName());
item = ConfigItem::GetObject("Service", GetName());
ObjectLock olock(descs);