From f4ac575b3ce1a2cc323ce0f0a264787d763175b1 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Wed, 13 Mar 1991 16:03:17 +0000 Subject: [PATCH] avoid HC bug git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1887 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb425/rd_req.c | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) 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 -- 2.26.2