From: Simo Sorce Date: Thu, 26 Apr 2012 20:54:42 +0000 (-0400) Subject: Fix compiler warning X-Git-Tag: samba-4.0.0alpha21~357 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=205b032061bffe68fd784ebdc33d485acd57a5b1;p=thirdparty%2Fsamba.git Fix compiler warning --- diff --git a/source4/auth/kerberos/kerberos_util.c b/source4/auth/kerberos/kerberos_util.c index e70782013e8..17ae99c6cd4 100644 --- a/source4/auth/kerberos/kerberos_util.c +++ b/source4/auth/kerberos/kerberos_util.c @@ -225,9 +225,9 @@ static krb5_error_code impersonate_principal_from_credentials( tries = 2; while (tries--) { +#ifdef SAMBA4_USES_HEIMDAL struct tevent_context *previous_ev; /* Do this every time, in case we have weird recursive issues here */ -#ifdef SAMBA4_USES_HEIMDAL ret = smb_krb5_context_set_event_ctx(smb_krb5_context, event_ctx, &previous_ev); if (ret) { talloc_free(mem_ctx);