[SSSD] [PATCH] Remove unused memory context
Lukas Slebodnik
lslebodn at redhat.com
Mon Jul 29 07:21:15 UTC 2013
ehlo,
Simple patch is attached.
LS
-------------- next part --------------
>From 0015e260c0f8f20718dda334d8f14b6d3ccfbbe8 Mon Sep 17 00:00:00 2001
From: Lukas Slebodnik <lslebodn at redhat.com>
Date: Sat, 20 Jul 2013 16:37:34 +0200
Subject: [PATCH] Remove unused memory context
---
src/responder/pam/pamsrv_cmd.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/responder/pam/pamsrv_cmd.c b/src/responder/pam/pamsrv_cmd.c
index 23935c45cb952a7c2298a1977574cb3de9c42ef7..a36de3a0e9529eaa0c52c1fe55b314865ff35978 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;
--
1.8.3.1
More information about the sssd-devel
mailing list