diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-10-15 13:14:33 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-10-17 13:25:09 +0200 |
commit | ecb189056033913d172c2c9dd19d558f7c468a7a (patch) | |
tree | 788f07b0191d51fe806606994378e5f6f4af430d /src/providers | |
parent | 19fb7706043237c25e202a2b4bd51b4287571921 (diff) | |
download | sssd-ecb189056033913d172c2c9dd19d558f7c468a7a.tar.gz sssd-ecb189056033913d172c2c9dd19d558f7c468a7a.tar.bz2 sssd-ecb189056033913d172c2c9dd19d558f7c468a7a.zip |
heimdal: Fix implication of krb5_data types [WIP]
Diffstat (limited to 'src/providers')
-rw-r--r-- | src/providers/krb5/krb5_child.c | 9 |
1 files 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); |