git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
799b576
)
r4361: fix the build
author
Stefan Metzmacher
<metze@samba.org>
Sat, 25 Dec 2004 14:12:31 +0000
(14:12 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:07:38 +0000
(13:07 -0500)
metze
(This used to be commit
78b2af77e9e4b97c698d6d9e680207b1df289cb4
)
source4/libcli/raw/clisession.c
patch
|
blob
|
history
diff --git
a/source4/libcli/raw/clisession.c
b/source4/libcli/raw/clisession.c
index 519f112cebda8656980b01db2c2b7ce1a5a2dc4d..dcc0c8adbeeb9e9350e169a21a0c78b3d3ae3984 100644
(file)
--- 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)));
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);
}
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 {
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;
}
DEBUG(1, ("Failed to login with %s: %s\n", gensec_get_name_by_oid(chosen_oid), nt_errstr(status)));
return status;
}