From: John Kohl Date: Wed, 13 Mar 1991 16:03:17 +0000 (+0000) Subject: avoid HC bug X-Git-Tag: krb5-1.0-alpha4~85 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f4ac575b3ce1a2cc323ce0f0a264787d763175b1;p=krb5.git avoid HC bug git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1887 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb425/rd_req.c b/src/lib/krb425/rd_req.c index a6cb842ba..63ff48156 100644 --- a/src/lib/krb425/rd_req.c +++ b/src/lib/krb425/rd_req.c @@ -126,11 +126,20 @@ char *fn; } #endif - if (r = krb5_rd_req(&authe, - (krb5_principal)server, - from_addr ? &peer : 0, - fn, use_set_key ? setkey_key_proc : 0, - 0, 0, &authdat)) { +/* ? : will break some compilers when dealing with function pointers */ + if (use_set_key) + r = krb5_rd_req(&authe, + (krb5_principal)server, + from_addr ? &peer : 0, + fn, setkey_key_proc, + 0, 0, &authdat); + else + r = krb5_rd_req(&authe, + (krb5_principal)server, + from_addr ? &peer : 0, + fn, 0, + 0, 0, &authdat); + if (r) { #ifdef EBUG ERROR(r) #endif