summaryrefslogtreecommitdiff
path: root/src/provider.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/provider.c')
-rw-r--r--src/provider.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/provider.c b/src/provider.c
index f7a16011..40c2750a 100644
--- a/src/provider.c
+++ b/src/provider.c
@@ -457,7 +457,7 @@ int __connman_provider_create_and_connect(DBusMessage *msg)
dbus_message_iter_next(&array);
}
- if (host == NULL && domain == NULL) {
+ if (host == NULL || domain == NULL) {
err = -EINVAL;
goto failed;
}