>From 73dcd0414fb5bd96eeed4ffb3bbcad1b40d50ff2 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Wed, 14 Aug 2013 15:30:47 +0200 Subject: [PATCH] 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(-) diff --git a/src/providers/ipa/ipa_dyndns.c b/src/providers/ipa/ipa_dyndns.c index 4e75a197a293110a8949809030c95567734fece5..a74a3cc18990637c245dd46687d137a79e468461 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; } -- 1.8.3.1