summaryrefslogtreecommitdiff
path: root/source4/auth
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
parent29177203e5da4cb42e0c5bc2f2981d6cffbe042c (diff)
downloadsamba-c537f7a91449728bbffdda628877f72db2d4e96b.tar.gz
samba-c537f7a91449728bbffdda628877f72db2d4e96b.tar.bz2
samba-c537f7a91449728bbffdda628877f72db2d4e96b.zip
Fix the build.
Diffstat (limited to 'source4/auth')
-rw-r--r--source4/auth/gensec/gensec.c4
-rw-r--r--source4/auth/system_session.c1
2 files changed, 3 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;
}
diff --git a/source4/auth/system_session.c b/source4/auth/system_session.c
index 1d227fe468..07b0060643 100644
--- a/source4/auth/system_session.c
+++ b/source4/auth/system_session.c
@@ -234,6 +234,7 @@ NTSTATUS auth_system_server_info(TALLOC_CTX *mem_ctx, const char *netbios_name,
struct auth_serversupplied_info **_server_info)
{
struct auth_serversupplied_info *server_info;
+
server_info = talloc(mem_ctx, struct auth_serversupplied_info);
NT_STATUS_HAVE_NO_MEMORY(server_info);