summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-10-15 13:14:33 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-10-17 13:43:59 +0200
commit397309037a5cafb4200c776239997b36e3177dc1 (patch)
tree0fe50bde703c162fd2ba04bb33f5fa177bc3ade6
parent43902fad1fc58e60e98ae4201ed286e857062ee3 (diff)
downloadsssd-397309037a5cafb4200c776239997b36e3177dc1.tar.gz
sssd-397309037a5cafb4200c776239997b36e3177dc1.tar.bz2
sssd-397309037a5cafb4200c776239997b36e3177dc1.zip
heimdal: Fix implication of krb5_data types [WIP]
-rw-r--r--src/providers/krb5/krb5_child.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/providers/krb5/krb5_child.c b/src/providers/krb5/krb5_child.c
index 27c3dde3..1d442f16 100644
--- a/src/providers/krb5/krb5_child.c
+++ b/src/providers/krb5/krb5_child.c
@@ -1117,7 +1117,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) {
@@ -1125,9 +1126,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);