krb5 commit: Fix use_dns_uri() type safety

Greg Hudson ghudson at mit.edu
Thu Sep 29 19:06:01 EDT 2016


https://github.com/krb5/krb5/commit/f648205247da436893dae97dd7949053da927af4
commit f648205247da436893dae97dd7949053da927af4
Author: Greg Hudson <ghudson at mit.edu>
Date:   Thu Sep 29 15:41:04 2016 -0400

    Fix use_dns_uri() type safety
    
    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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/lib/krb5/os/locate_kdc.c b/src/lib/krb5/os/locate_kdc.c
index 5d74c83..014ec6e 100644
--- a/src/lib/krb5/os/locate_kdc.c
+++ b/src/lib/krb5/os/locate_kdc.c
@@ -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,


More information about the cvs-krb5 mailing list