Hi,

I'm sorry for sending a buggy version to the list, but both unit tests
and the subsequent patches in my git branch actually use the "_ttl"
parameter, so the code worked for me..
>From 7de1f5b581d18c49a8fd7989a405c11e7242e637 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhro...@redhat.com>
Date: Fri, 13 Feb 2015 17:36:42 +0100
Subject: [PATCH] resolv: Fix a typo

---
 src/resolv/async_resolv_utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/resolv/async_resolv_utils.c b/src/resolv/async_resolv_utils.c
index 
250681717f9548e4e9e2d8ee2951218605140ed4..e49f7bfd61cf8eda2b9b7d7efe47bc17fd30db02
 100644
--- a/src/resolv/async_resolv_utils.c
+++ b/src/resolv/async_resolv_utils.c
@@ -334,7 +334,7 @@ errno_t resolv_discover_srv_recv(TALLOC_CTX *mem_ctx,
         *_reply_list = talloc_steal(mem_ctx, state->reply_list);
     }
 
-    if (*_ttl) {
+    if (_ttl != NULL) {
         *_ttl = state->ttl;
     }
 
-- 
2.1.0

_______________________________________________
sssd-devel mailing list
sssd-devel@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/sssd-devel

Reply via email to