From 003a36eb5e677406c9f634c3fd66519b73dac487 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 4 Nov 2010 12:52:08 +1100 Subject: s4-auth: unconditionally set previous_ev we need the caller to know when the previous_ev was NULL Pair-Programmed-With: Andrew Bartlett --- source4/auth/kerberos/krb5_init_context.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source4/auth/kerberos/krb5_init_context.c b/source4/auth/kerberos/krb5_init_context.c index 54f27b0860..2f1416d3fe 100644 --- a/source4/auth/kerberos/krb5_init_context.c +++ b/source4/auth/kerberos/krb5_init_context.c @@ -527,9 +527,7 @@ krb5_error_code smb_krb5_context_set_event_ctx(struct smb_krb5_context *smb_krb5 return EINVAL; } - if (smb_krb5_context->current_ev) { - *previous_ev = smb_krb5_context->current_ev; - } + *previous_ev = smb_krb5_context->current_ev; smb_krb5_context->current_ev = talloc_reference(smb_krb5_context, ev); if (!smb_krb5_context->current_ev) { -- cgit