From 5170a8cc500e8e1c872e259bc7bc804d84f7610d Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Wed, 14 Aug 2013 15:30:47 +0200 Subject: Check whether servername is not empty string. Previous check was wrong, servername cannot be NULL. --- src/providers/ipa/ipa_dyndns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/providers/ipa') diff --git a/src/providers/ipa/ipa_dyndns.c b/src/providers/ipa/ipa_dyndns.c index 4e75a197a..a74a3cc18 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; } -- cgit