summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-08-14 15:30:47 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-08-19 10:14:34 +0200
commit5170a8cc500e8e1c872e259bc7bc804d84f7610d (patch)
treedb17c813f4e07972f86acc32092e68a111d36e4a /src
parent545f49b72cdf8453fb0b85c9d87e7d4711da57da (diff)
downloadsssd-5170a8cc500e8e1c872e259bc7bc804d84f7610d.tar.gz
sssd-5170a8cc500e8e1c872e259bc7bc804d84f7610d.tar.bz2
sssd-5170a8cc500e8e1c872e259bc7bc804d84f7610d.zip
Check whether servername is not empty string.
Previous check was wrong, servername cannot be NULL.
Diffstat (limited to 'src')
-rw-r--r--src/providers/ipa/ipa_dyndns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ipa/ipa_dyndns.c b/src/providers/ipa/ipa_dyndns.c
index 4e75a197..a74a3cc1 100644
--- a/src/providers/ipa/ipa_dyndns.c
+++ b/src/providers/ipa/ipa_dyndns.c
@@ -195,7 +195,7 @@ ipa_dyndns_update_send(struct ipa_options *ctx)
goto done;
}
servername = ctx->service->sdap->uri + 7;
- if (!servername) {
+ if (servername[0] == '\0') {
ret = EIO;
goto done;
}