summaryrefslogtreecommitdiff
path: root/src/providers/krb5/krb5_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/providers/krb5/krb5_common.c')
-rw-r--r--src/providers/krb5/krb5_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/krb5/krb5_common.c b/src/providers/krb5/krb5_common.c
index 4bf071ee..8f5eb496 100644
--- a/src/providers/krb5/krb5_common.c
+++ b/src/providers/krb5/krb5_common.c
@@ -925,7 +925,7 @@ errno_t krb5_get_simple_upn(TALLOC_CTX *mem_ctx, struct krb5_ctx *krb5_ctx,
if (ret != EOK) {
DEBUG(SSSDBG_OP_FAILURE, ("Could not parse %s into name and " \
"domain components, login might fail\n"));
- name = username;
+ name = discard_const(username);
}
/* NOTE: this is a hack, works only in some environments */