diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2010-08-12 13:26:58 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-08-12 13:26:58 +0200 |
commit | ee279b3e073b895a0fc8127c270416aa23089d99 (patch) | |
tree | 6beec1d1d9e287ec2ced7ea3c61a25e0fdc0c14a /src | |
parent | 1c119edf9c3f7dcabcf02aa5870330e4b28be5fc (diff) | |
download | connman-ee279b3e073b895a0fc8127c270416aa23089d99.tar.gz connman-ee279b3e073b895a0fc8127c270416aa23089d99.tar.bz2 connman-ee279b3e073b895a0fc8127c270416aa23089d99.zip |
Both host and domain provider strings should not be NULL
Diffstat (limited to 'src')
-rw-r--r-- | src/provider.c | 2 |
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; } |