From: Todd C. Miller Date: Sun, 13 Jul 2014 20:27:20 +0000 (-0600) Subject: Fix a pointer signednes warning calling base64_decode(). X-Git-Tag: SUDO_1_8_11^2~123 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b5a6037a6c614a347c6800096d513e8f9db4e744;p=sudo Fix a pointer signednes warning calling base64_decode(). --- diff --git a/plugins/sudoers/ldap.c b/plugins/sudoers/ldap.c index cd2f0372b..8e250c53f 100644 --- a/plugins/sudoers/ldap.c +++ b/plugins/sudoers/ldap.c @@ -1387,7 +1387,7 @@ sudo_ldap_build_pass2(void) static char * sudo_ldap_decode_secret(const char *secret) { - char *result = NULL; + unsigned char *result = NULL; size_t len, reslen; debug_decl(sudo_ldap_decode_secret, SUDO_DEBUG_LDAP) @@ -1405,7 +1405,7 @@ sudo_ldap_decode_secret(const char *secret) result = NULL; } } - debug_return_str(result); + debug_return_str((char *)result); } static void