s4:torture Fix segfault in RPC-SAMSYNC
authorAndrew Bartlett <abartlet@samba.org>
Fri, 24 Apr 2009 07:35:24 +0000 (09:35 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 24 Apr 2009 07:35:24 +0000 (09:35 +0200)
This code needs to be fixed to match Win2008 behavior, but at least it
does not segfault any more.

Andrew Bartlett

source4/torture/rpc/samsync.c

index a67a06dcb67e9ad9164da0be376f551abf77abf8..4cecab40171974783e9bf08ecfe17dd3bf28e19c 100644 (file)
@@ -177,7 +177,7 @@ static struct policy_handle *samsync_open_domain(TALLOC_CTX *mem_ctx,
        o.in.sid = *l.out.sid;
        o.out.domain_handle = domain_handle;
        
-       if (sid) {
+       if (sid_p) {
                *sid_p = *l.out.sid;
        }