summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-06-28 10:01:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:04 -0500
commitdd8b8286d05ba9423f44bf3eda7bbf53f0528538 (patch)
tree88cb82ca606f460d476577951b8d169183763e5e /source3
parent3e0f586298125bbda80b8edcced49d5bbb424b0d (diff)
downloadsamba-dd8b8286d05ba9423f44bf3eda7bbf53f0528538.tar.gz
samba-dd8b8286d05ba9423f44bf3eda7bbf53f0528538.tar.bz2
samba-dd8b8286d05ba9423f44bf3eda7bbf53f0528538.zip
r1282: gcc 3.2 on SuSE 8.2 does not like #ifdefs inside a macro argument (DEBUG).
Volker (This used to be commit b491e76625f0d20fa9db2a3dbb22adc34ca7d414)
Diffstat (limited to 'source3')
-rw-r--r--source3/libads/kerberos_verify.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/libads/kerberos_verify.c b/source3/libads/kerberos_verify.c
index d81a0a1629..f72c298399 100644
--- a/source3/libads/kerberos_verify.c
+++ b/source3/libads/kerberos_verify.c
@@ -78,12 +78,14 @@ static BOOL ads_keytab_verify_ticket(krb5_context context, krb5_auth_context aut
if (!(ret = krb5_rd_req(context, &auth_context, p_packet, NULL, NULL, NULL, pp_tkt))) {
krb5_free_unparsed_name(context, princ_name);
princ_name = NULL;
- DEBUG(10,("ads_keytab_verify_ticket: enc type [%u] decrypted message !\n",
+ unsigned int keytype;
#ifdef HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK
- (unsigned int) kt_entry.keyblock.keytype));
+ keytype = (unsigned int) kt_entry.keyblock.keytype;
#else
- (unsigned int) kt_entry.key.enctype));
+ keytype = (unsigned int) kt_entry.key.enctype;
#endif
+ DEBUG(10,("ads_keytab_verify_ticket: enc type [%u] decrypted message !\n",
+ keytype));
auth_ok = True;
break;
}