summaryrefslogtreecommitdiff
path: root/src/providers/krb5
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-07-16 09:47:12 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-07-22 11:00:03 +0200
commitd6c2ee96f5f181f21b0003aa8f3506e82522291d (patch)
tree469378490867afb88f09bc65244c192494750df9 /src/providers/krb5
parentd5e8c3a1290d68d07362a119e63121156ad448df (diff)
downloadsssd-d6c2ee96f5f181f21b0003aa8f3506e82522291d.tar.gz
sssd-d6c2ee96f5f181f21b0003aa8f3506e82522291d.tar.bz2
sssd-d6c2ee96f5f181f21b0003aa8f3506e82522291d.zip
Remove unused memory context from function unpack_authtok
Diffstat (limited to 'src/providers/krb5')
-rw-r--r--src/providers/krb5/krb5_child.c6
1 files changed, 3 insertions, 3 deletions
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;
}