summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-12-25 14:12:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:07:38 -0500
commit24f209e89934cd9c522e2225e47cd6788834ba1f (patch)
treee342b80d3a5263e6eb7f82ccdeea3b44b506766e
parent799b5764d1452c7ec15c8b74b33c83cb2db4702b (diff)
downloadsamba-24f209e89934cd9c522e2225e47cd6788834ba1f.tar.gz
samba-24f209e89934cd9c522e2225e47cd6788834ba1f.tar.bz2
samba-24f209e89934cd9c522e2225e47cd6788834ba1f.zip
r4361: fix the build
metze (This used to be commit 78b2af77e9e4b97c698d6d9e680207b1df289cb4)
-rw-r--r--source4/libcli/raw/clisession.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/libcli/raw/clisession.c b/source4/libcli/raw/clisession.c
index 519f112ceb..dcc0c8adbe 100644
--- a/source4/libcli/raw/clisession.c
+++ b/source4/libcli/raw/clisession.c
@@ -410,7 +410,7 @@ static NTSTATUS smb_raw_session_setup_generic_spnego(struct smbcli_session *sess
status = gensec_client_start(session, &session->gensec);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(1, ("Failed to start GENSEC client mode: %s\n", nt_errstr(status)));
- goto done;
+ return status;
}
gensec_want_feature(session->gensec, GENSEC_FEATURE_SESSION_KEY);
@@ -505,7 +505,8 @@ done:
parms->generic.out.lanman = s2.spnego.out.lanman;
parms->generic.out.domain = s2.spnego.out.domain;
} else {
- gensec_end(&session->gensec);
+ talloc_free(session->gensec);
+ session->gensec = NULL;
DEBUG(1, ("Failed to login with %s: %s\n", gensec_get_name_by_oid(chosen_oid), nt_errstr(status)));
return status;
}