]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix use_dns_uri() type safety 546/head
authorGreg Hudson <ghudson@mit.edu>
Thu, 29 Sep 2016 19:41:04 +0000 (15:41 -0400)
committerGreg Hudson <ghudson@mit.edu>
Thu, 29 Sep 2016 19:41:04 +0000 (15:41 -0400)
profile_get_boolean() outputs an int, not a krb5_boolean.  Adjust the
local variable "use" to match, or we get a warning.  Reported by Will
Fiveash.

ticket: 8502

src/lib/krb5/os/locate_kdc.c

index 5d74c8315ee159d6c613b1b6371ad8ba5d50aedc..014ec6ecb902893280e13e72e0089803ede6decb 100644 (file)
@@ -75,7 +75,7 @@ static krb5_boolean
 use_dns_uri(krb5_context ctx)
 {
     krb5_error_code ret;
-    krb5_boolean use;
+    int use;
 
     ret = profile_get_boolean(ctx->profile, KRB5_CONF_LIBDEFAULTS,
                               KRB5_CONF_DNS_URI_LOOKUP, NULL,