summaryrefslogtreecommitdiff
path: root/source4/auth/gensec
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-11-02 05:49:36 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-11-02 05:49:36 +0100
commitc537f7a91449728bbffdda628877f72db2d4e96b (patch)
treec8589d1c9a7dd0bd62ff8344dd8f523033cc7e37 /source4/auth/gensec
parent29177203e5da4cb42e0c5bc2f2981d6cffbe042c (diff)
downloadsamba-c537f7a91449728bbffdda628877f72db2d4e96b.tar.gz
samba-c537f7a91449728bbffdda628877f72db2d4e96b.tar.bz2
samba-c537f7a91449728bbffdda628877f72db2d4e96b.zip
Fix the build.
Diffstat (limited to 'source4/auth/gensec')
-rw-r--r--source4/auth/gensec/gensec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/auth/gensec/gensec.c b/source4/auth/gensec/gensec.c
index 3416ee10bc..20c88f86bc 100644
--- a/source4/auth/gensec/gensec.c
+++ b/source4/auth/gensec/gensec.c
@@ -501,7 +501,7 @@ static NTSTATUS gensec_start(TALLOC_CTX *mem_ctx,
(*gensec_security)->event_ctx = ev;
(*gensec_security)->msg_ctx = msg;
- (*gensec_security)->settings = settings;
+ (*gensec_security)->settings = talloc_reference(*gensec_security, settings);
return NT_STATUS_OK;
}
@@ -529,7 +529,7 @@ _PUBLIC_ NTSTATUS gensec_subcontext_start(TALLOC_CTX *mem_ctx,
(*gensec_security)->want_features = parent->want_features;
(*gensec_security)->event_ctx = parent->event_ctx;
(*gensec_security)->msg_ctx = parent->msg_ctx;
- (*gensec_security)->settings = parent->settings;
+ (*gensec_security)->settings = talloc_reference(*gensec_security, parent->settings);
return NT_STATUS_OK;
}