summaryrefslogtreecommitdiff
path: root/src/providers/krb5
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-03-14 09:44:41 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-04-02 17:01:08 +0200
commit53b58615fbc13eddcd6e2f28066b67cb5f16b6d3 (patch)
treee5ca489842778a4e6adba28e085bb75701db89de /src/providers/krb5
parent755aee449c6311518200c2f11c1aae329a19b038 (diff)
downloadsssd-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/providers/krb5')
-rw-r--r--src/providers/krb5/krb5_child.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/krb5/krb5_child.c b/src/providers/krb5/krb5_child.c
index 65685333..52127b39 100644
--- a/src/providers/krb5/krb5_child.c
+++ b/src/providers/krb5/krb5_child.c
@@ -1556,7 +1556,7 @@ static errno_t unpack_buffer(uint8_t *buf, size_t size,
if (!offline || !kr) return EINVAL;
- pd = talloc_zero(kr, struct pam_data);
+ pd = create_pam_data(kr);
if (pd == NULL) {
DEBUG(SSSDBG_CRIT_FAILURE, ("talloc_zero failed.\n"));
return ENOMEM;