diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-11-04 12:52:08 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-11-04 20:35:43 +1100 |
commit | 003a36eb5e677406c9f634c3fd66519b73dac487 (patch) | |
tree | 1e4b6be9070872a8a4c899b57db2d27c3fd0da2a /source4/auth | |
parent | cb9fba1ed387a1a34f866c13a979ee91cd1d6da8 (diff) | |
download | samba-003a36eb5e677406c9f634c3fd66519b73dac487.tar.gz samba-003a36eb5e677406c9f634c3fd66519b73dac487.tar.bz2 samba-003a36eb5e677406c9f634c3fd66519b73dac487.zip |
s4-auth: unconditionally set previous_ev
we need the caller to know when the previous_ev was NULL
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/auth')
-rw-r--r-- | source4/auth/kerberos/krb5_init_context.c | 4 |
1 files changed, 1 insertions, 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) { |