summaryrefslogtreecommitdiff
path: root/libgpo/gpo_fetch.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-04-20 19:15:32 +0200
committerGünther Deschner <gd@samba.org>2009-04-20 23:16:17 +0200
commit7010365e9ac5f9a285b5ad7b660a3c49ff0e8c17 (patch)
treed4fbbd19ae72c17b16d7185bc7a9a8fb247b3314 /libgpo/gpo_fetch.c
parent171a361375e1cd76a80253d67e4e34a139bb5570 (diff)
downloadsamba-7010365e9ac5f9a285b5ad7b660a3c49ff0e8c17.tar.gz
samba-7010365e9ac5f9a285b5ad7b660a3c49ff0e8c17.tar.bz2
samba-7010365e9ac5f9a285b5ad7b660a3c49ff0e8c17.zip
libgpo: Fix some minor issues.
Guenther Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'libgpo/gpo_fetch.c')
-rw-r--r--libgpo/gpo_fetch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libgpo/gpo_fetch.c b/libgpo/gpo_fetch.c
index beedfc2280..06c730cfa3 100644
--- a/libgpo/gpo_fetch.c
+++ b/libgpo/gpo_fetch.c
@@ -114,7 +114,7 @@ static NTSTATUS gpo_prepare_local_store(TALLOC_CTX *mem_ctx,
}
while (next_token_talloc(mem_ctx, &unix_path, &tok, "/")) {
- if (strequal(tok, cache_dir)) {
+ if (strequal(tok, GPO_CACHE_DIR)) {
break;
}
}
@@ -212,6 +212,7 @@ NTSTATUS gpo_fetch_files(TALLOC_CTX *mem_ctx,
result = gpo_connect_server(ads, lp_ctx, server, service, &cli);
+ NT_STATUS_NOT_OK_RETURN(result);
result = gpo_prepare_local_store(mem_ctx, cache_dir, unix_path);