From d6c2ee96f5f181f21b0003aa8f3506e82522291d Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Tue, 16 Jul 2013 09:47:12 +0200 Subject: Remove unused memory context from function unpack_authtok --- src/providers/krb5/krb5_child.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/providers/krb5/krb5_child.c') diff --git a/src/providers/krb5/krb5_child.c b/src/providers/krb5/krb5_child.c index e3dc0fcd..051079fd 100644 --- a/src/providers/krb5/krb5_child.c +++ b/src/providers/krb5/krb5_child.c @@ -1602,7 +1602,7 @@ static errno_t create_empty_ccache(struct krb5_req *kr) return map_krb5_error(kerr); } -static errno_t unpack_authtok(TALLOC_CTX *mem_ctx, struct sss_auth_token *tok, +static errno_t unpack_authtok(struct sss_auth_token *tok, uint8_t *buf, size_t size, size_t *p) { uint32_t auth_token_type; @@ -1695,7 +1695,7 @@ static errno_t unpack_buffer(uint8_t *buf, size_t size, if (kr->keytab == NULL) return ENOMEM; p += len; - ret = unpack_authtok(pd, pd->authtok, buf, size, &p); + ret = unpack_authtok(pd->authtok, buf, size, &p); if (ret) { return ret; } @@ -1709,7 +1709,7 @@ static errno_t unpack_buffer(uint8_t *buf, size_t size, } if (pd->cmd == SSS_PAM_CHAUTHTOK) { - ret = unpack_authtok(pd, pd->newauthtok, buf, size, &p); + ret = unpack_authtok(pd->newauthtok, buf, size, &p); if (ret) { return ret; } -- cgit