diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2013-03-14 09:44:41 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-04-02 17:01:08 +0200 |
commit | 53b58615fbc13eddcd6e2f28066b67cb5f16b6d3 (patch) | |
tree | e5ca489842778a4e6adba28e085bb75701db89de /src/responder/pam | |
parent | 755aee449c6311518200c2f11c1aae329a19b038 (diff) | |
download | sssd-53b58615fbc13eddcd6e2f28066b67cb5f16b6d3.tar.gz sssd-53b58615fbc13eddcd6e2f28066b67cb5f16b6d3.tar.bz2 sssd-53b58615fbc13eddcd6e2f28066b67cb5f16b6d3.zip |
Reusing create_pam_data() on the other places.
Function create_pam_data() should be only one way how to create new
struct pam_data, because it also initialize destructor to created
object.
Diffstat (limited to 'src/responder/pam')
-rw-r--r-- | src/responder/pam/pamsrv_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/responder/pam/pamsrv_cmd.c b/src/responder/pam/pamsrv_cmd.c index 647f8276..fa6cf23c 100644 --- a/src/responder/pam/pamsrv_cmd.c +++ b/src/responder/pam/pamsrv_cmd.c @@ -758,7 +758,7 @@ static int pam_forwarder(struct cli_ctx *cctx, int pam_cmd) } preq->cctx = cctx; - preq->pd = talloc_zero(preq, struct pam_data); + preq->pd = create_pam_data(preq); if (!preq->pd) { talloc_free(preq); return ENOMEM; |