diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2013-07-20 16:37:34 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-07-29 12:57:31 +0200 |
commit | 680ddbdf8478f26cbb5efc9b712ea35714e089ba (patch) | |
tree | e1298fe887427f3fa4ff595bf5d566bc4cae6945 /src/responder/pam/pamsrv_cmd.c | |
parent | 68c26d9ec785b8af0b45247705b20e82656bfd05 (diff) | |
download | sssd-680ddbdf8478f26cbb5efc9b712ea35714e089ba.tar.gz sssd-680ddbdf8478f26cbb5efc9b712ea35714e089ba.tar.xz sssd-680ddbdf8478f26cbb5efc9b712ea35714e089ba.zip |
Remove unused memory context
Diffstat (limited to 'src/responder/pam/pamsrv_cmd.c')
-rw-r--r-- | src/responder/pam/pamsrv_cmd.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/responder/pam/pamsrv_cmd.c b/src/responder/pam/pamsrv_cmd.c index bf9a68623..4e3bd79c1 100644 --- a/src/responder/pam/pamsrv_cmd.c +++ b/src/responder/pam/pamsrv_cmd.c @@ -44,7 +44,7 @@ enum pam_verbosity { static void pam_reply(struct pam_auth_req *preq); -static int extract_authtok_v2(TALLOC_CTX *mem_ctx, struct sss_auth_token *tok, +static int extract_authtok_v2(struct sss_auth_token *tok, size_t data_size, uint8_t *body, size_t blen, size_t *c) { @@ -200,12 +200,12 @@ static int pam_parse_in_data_v2(struct sss_domain_info *domains, if (ret != EOK) return ret; break; case SSS_PAM_ITEM_AUTHTOK: - ret = extract_authtok_v2(pd, pd->authtok, + ret = extract_authtok_v2(pd->authtok, size, body, blen, &c); if (ret != EOK) return ret; break; case SSS_PAM_ITEM_NEWAUTHTOK: - ret = extract_authtok_v2(pd, pd->newauthtok, + ret = extract_authtok_v2(pd->newauthtok, size, body, blen, &c); if (ret != EOK) return ret; break; @@ -246,7 +246,7 @@ static int pam_parse_in_data_v3(struct sss_domain_info *domains, return EOK; } -static int extract_authtok_v1(TALLOC_CTX *mem_ctx, struct sss_auth_token *tok, +static int extract_authtok_v1(struct sss_auth_token *tok, uint8_t *body, size_t blen, size_t *c) { uint32_t auth_token_type; @@ -312,12 +312,12 @@ static int pam_parse_in_data(struct sss_domain_info *domains, if (body[end++] != '\0') return EINVAL; pd->rhost = (char *) &body[start]; - ret = extract_authtok_v1(pd, pd->authtok, body, blen, &end); + ret = extract_authtok_v1(pd->authtok, body, blen, &end); if (ret) { DEBUG(1, ("Invalid auth token\n")); return ret; } - ret = extract_authtok_v1(pd, pd->newauthtok, body, blen, &end); + ret = extract_authtok_v1(pd->newauthtok, body, blen, &end); if (ret) { DEBUG(1, ("Invalid new auth token\n")); return ret; |