mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 03:21:19 +00:00
nwfilter: Don't try to acquire DBus context when DBus is disabled
To silence error if DBus support is not compiled in.
This commit is contained in:
parent
2a41bc95b5
commit
f33dfffc41
@ -168,7 +168,11 @@ static int
|
|||||||
nwfilterDriverStartup(int privileged)
|
nwfilterDriverStartup(int privileged)
|
||||||
{
|
{
|
||||||
char *base = NULL;
|
char *base = NULL;
|
||||||
DBusConnection *sysbus = virDBusGetSystemBus();
|
DBusConnection *sysbus = NULL;
|
||||||
|
|
||||||
|
#if HAVE_DBUS
|
||||||
|
sysbus = virDBusGetSystemBus();
|
||||||
|
#endif /* HAVE_DBUS */
|
||||||
|
|
||||||
if (VIR_ALLOC(driverState) < 0)
|
if (VIR_ALLOC(driverState) < 0)
|
||||||
goto alloc_err_exit;
|
goto alloc_err_exit;
|
||||||
|
Loading…
Reference in New Issue
Block a user