summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-11-29 11:33:04 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-11-29 11:33:04 +0100
commitcc553eaf97f0466a89d43a12f9cb843cfa1379fb (patch)
tree82e92238367055a30afa84b829ddf53e5b8005c9
parent702508745682c29cb3f9959b7c22d535b767459f (diff)
downloadsamba-cc553eaf97f0466a89d43a12f9cb843cfa1379fb.tar.gz
samba-cc553eaf97f0466a89d43a12f9cb843cfa1379fb.tar.bz2
samba-cc553eaf97f0466a89d43a12f9cb843cfa1379fb.zip
s4:auth/gensec/gensec_gssapi.c - always print error messages on the same talloc context
-rw-r--r--source4/auth/gensec/gensec_gssapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/auth/gensec/gensec_gssapi.c b/source4/auth/gensec/gensec_gssapi.c
index f0da54d711..e807f774a5 100644
--- a/source4/auth/gensec/gensec_gssapi.c
+++ b/source4/auth/gensec/gensec_gssapi.c
@@ -583,12 +583,12 @@ static NTSTATUS gensec_gssapi_update(struct gensec_security *gensec_security,
case KRB5_KDC_UNREACH:
DEBUG(3, ("Cannot reach a KDC we require in order to obtain a ticetk to %s: %s\n",
gensec_gssapi_state->target_principal,
- gssapi_error_string(gensec_gssapi_state, maj_stat, min_stat, gensec_gssapi_state->gss_oid)));
+ gssapi_error_string(out_mem_ctx, maj_stat, min_stat, gensec_gssapi_state->gss_oid)));
return NT_STATUS_NO_LOGON_SERVERS; /* Make SPNEGO ignore us, we can't go any further here */
case KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN:
DEBUG(3, ("Server %s is not registered with our KDC: %s\n",
gensec_gssapi_state->target_principal,
- gssapi_error_string(gensec_gssapi_state, maj_stat, min_stat, gensec_gssapi_state->gss_oid)));
+ gssapi_error_string(out_mem_ctx, maj_stat, min_stat, gensec_gssapi_state->gss_oid)));
return NT_STATUS_INVALID_PARAMETER; /* Make SPNEGO ignore us, we can't go any further here */
case KRB5KRB_AP_ERR_MSG_TYPE:
/* garbage input, possibly from the auto-mech detection */