Blame SOURCES/0054-AD-Return-right-error-code-from-netlogon_get_flat_na.patch

2fc102
From e47d40005610c3f6e14d4a656fda2e8cadde4844 Mon Sep 17 00:00:00 2001
2fc102
From: Lukas Slebodnik <lslebodn@redhat.com>
2fc102
Date: Thu, 16 Jan 2014 16:42:50 +0100
2fc102
Subject: [PATCH 54/57] AD: Return right error code from netlogon_get_flat_name
2fc102
2fc102
EOK was returned in done section of netlogon_get_flat_name,
2fc102
even if error code was set in variable ret.
2fc102
2fc102
This patch fixes also warnings from scan-build.
2fc102
---
2fc102
 src/providers/ad/ad_domain_info.c | 2 +-
2fc102
 1 file changed, 1 insertion(+), 1 deletion(-)
2fc102
2fc102
diff --git a/src/providers/ad/ad_domain_info.c b/src/providers/ad/ad_domain_info.c
2fc102
index 5475c5bc7ec74e81080566c6fbd6919c54a60f40..28d24b1613040ab1e85cd1504c5469aa60bc08c5 100644
2fc102
--- a/src/providers/ad/ad_domain_info.c
2fc102
+++ b/src/providers/ad/ad_domain_info.c
2fc102
@@ -131,7 +131,7 @@ netlogon_get_domain_info(TALLOC_CTX *mem_ctx,
2fc102
     ret = EOK;
2fc102
 done:
2fc102
     talloc_free(ndr_pull);
2fc102
-    return EOK;
2fc102
+    return ret;
2fc102
 }
2fc102
 
2fc102
 struct ad_master_domain_state {
2fc102
-- 
2fc102
1.8.4.2
2fc102