[SSSD] [PATCH] Remove unused memory context from function unpack_authtok

Lukas Slebodnik lslebodn at redhat.com
Mon Jul 22 07:42:05 UTC 2013


ehlo,

Simple patch is attached.

LS
-------------- next part --------------
>From 0fc46cc06df4b501bacaca76614b6b379b9e9d9f Mon Sep 17 00:00:00 2001
From: Lukas Slebodnik <lslebodn at redhat.com>
Date: Tue, 16 Jul 2013 09:47:12 +0200
Subject: [PATCH] Remove unused memory context from function unpack_authtok

---
 src/providers/krb5/krb5_child.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/providers/krb5/krb5_child.c b/src/providers/krb5/krb5_child.c
index 76d1aecf950ca155f8d7311677413b90ed37bfae..80e7e9912b8be13c08d29eed04cbd1935f2351ea 100644
--- a/src/providers/krb5/krb5_child.c
+++ b/src/providers/krb5/krb5_child.c
@@ -1610,7 +1610,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;
@@ -1703,7 +1703,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;
         }
@@ -1717,7 +1717,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;
         }
-- 
1.8.3.1



More information about the sssd-devel mailing list