From ee279b3e073b895a0fc8127c270416aa23089d99 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Thu, 12 Aug 2010 13:26:58 +0200 Subject: Both host and domain provider strings should not be NULL --- src/provider.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3