avoid HC bug
authorJohn Kohl <jtkohl@mit.edu>
Wed, 13 Mar 1991 16:03:17 +0000 (16:03 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Wed, 13 Mar 1991 16:03:17 +0000 (16:03 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1887 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb425/rd_req.c

index a6cb842bad609586c30169624f195ed141fbe9a1..63ff48156d720c132c0302a2a965ec3497936962 100644 (file)
@@ -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