X-Git-Url: http://git.samba.org/samba.git/?p=ira%2Fwip.git;a=blobdiff_plain;f=libgpo%2Fgpo_fetch.c;h=06c730cfa38404bc697bcbe247e85db0d0f5f7d0;hp=beedfc228013003df637f967c067b377f02f93b2;hb=6fc40ce0d3b1bdfe9a138db4953896f47094424e;hpb=171a361375e1cd76a80253d67e4e34a139bb5570 diff --git a/libgpo/gpo_fetch.c b/libgpo/gpo_fetch.c index beedfc22801..06c730cfa38 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);