summaryrefslogtreecommitdiffstats
path: root/src/providers/krb5/krb5_common.c
diff options
context:
space:
mode:
authorPavel Reichl <preichl@redhat.com>2014-01-28 17:19:07 +0000
committerJakub Hrozek <jhrozek@redhat.com>2014-06-03 12:57:11 +0200
commit4deef23b3a0e7da0c1ef4f45f792736c056c3123 (patch)
tree4e9bb3be36511270fcccf840b99d18fc80bd0c6a /src/providers/krb5/krb5_common.c
parent99736adbc8da137e3ea061436e4d8baf3a015877 (diff)
downloadsssd-4deef23b3a0e7da0c1ef4f45f792736c056c3123.tar.gz
sssd-4deef23b3a0e7da0c1ef4f45f792736c056c3123.tar.xz
sssd-4deef23b3a0e7da0c1ef4f45f792736c056c3123.zip
refactor calls of sss_parse_name
sss_parse_name now supports NULL as output parameters so existing calls passing arguments which were never read were substituted by NULL. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/providers/krb5/krb5_common.c')
-rw-r--r--src/providers/krb5/krb5_common.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/providers/krb5/krb5_common.c b/src/providers/krb5/krb5_common.c
index 48cb69080..4eafe366a 100644
--- a/src/providers/krb5/krb5_common.c
+++ b/src/providers/krb5/krb5_common.c
@@ -1005,7 +1005,6 @@ errno_t krb5_get_simple_upn(TALLOC_CTX *mem_ctx, struct krb5_ctx *krb5_ctx,
char *uc_dom = NULL;
char *upn;
char *name;
- char *domname;
TALLOC_CTX *tmp_ctx = NULL;
errno_t ret;
@@ -1035,7 +1034,7 @@ errno_t krb5_get_simple_upn(TALLOC_CTX *mem_ctx, struct krb5_ctx *krb5_ctx,
/* Subdomains already have a fully qualified name, which contains
* the domain name. We need to replace it with the realm name
*/
- ret = sss_parse_name(tmp_ctx, dom->names, username, &domname, &name);
+ ret = sss_parse_name(tmp_ctx, dom->names, username, NULL, &name);
if (ret != EOK) {
DEBUG(SSSDBG_OP_FAILURE,
"Could not parse [%s] into name and "