Fix compiler warning
authorSimo Sorce <idra@samba.org>
Thu, 26 Apr 2012 20:54:42 +0000 (16:54 -0400)
committerSimo Sorce <idra@samba.org>
Fri, 4 May 2012 14:51:29 +0000 (16:51 +0200)
source4/auth/kerberos/kerberos_util.c

index e70782013e8e48935dd7a010df681525d98b6fc0..17ae99c6cd4b862824c95e4c015ce949aa5bcec6 100644 (file)
@@ -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);