From ecb189056033913d172c2c9dd19d558f7c468a7a Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Tue, 15 Oct 2013 13:14:33 +0200 Subject: heimdal: Fix implication of krb5_data types [WIP] --- src/providers/krb5/krb5_child.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/providers/krb5/krb5_child.c b/src/providers/krb5/krb5_child.c index 699bcb34..2593cab0 100644 --- a/src/providers/krb5/krb5_child.c +++ b/src/providers/krb5/krb5_child.c @@ -1114,7 +1114,8 @@ static errno_t changepw_child(struct krb5_req *kr, bool prelim) if (result_code_string.length > 0) { DEBUG(1, ("krb5_change_password failed [%d][%.*s].\n", result_code, - result_code_string.length, result_code_string.data)); + (int) result_code_string.length, + (char *) result_code_string.data)); user_error_message = talloc_strndup(kr->pd, result_code_string.data, result_code_string.length); if (user_error_message == NULL) { @@ -1122,9 +1123,11 @@ static errno_t changepw_child(struct krb5_req *kr, bool prelim) } } - if (result_string.length > 0 && result_string.data[0] != '\0') { + if (result_string.length > 0 && + ((char *) result_string.data)[0] != '\0') { DEBUG(1, ("krb5_change_password failed [%d][%.*s].\n", result_code, - result_string.length, result_string.data)); + (int) result_string.length, + (char *) result_string.data)); talloc_free(user_error_message); user_error_message = talloc_strndup(kr->pd, result_string.data, result_string.length); -- cgit