[SSSD] [PATCH] Check whether servername is not empty string

Lukas Slebodnik lslebodn at redhat.com
Wed Aug 14 13:43:30 UTC 2013


ehlo,

simple patch is attached.

LS
-------------- next part --------------
>From 73dcd0414fb5bd96eeed4ffb3bbcad1b40d50ff2 Mon Sep 17 00:00:00 2001
From: Lukas Slebodnik <lslebodn at redhat.com>
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



More information about the sssd-devel mailing list