summaryrefslogtreecommitdiff
path: root/nsswitch/libwbclient/wbc_pam.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-01-23 19:38:28 +0100
committerVolker Lendecke <vl@samba.org>2010-01-24 14:52:33 +0100
commit96b12e0d59b27913e915ea28b3edaa7023b765c5 (patch)
treee6357b5fd596d55907fb22b4b082c8706572ba39 /nsswitch/libwbclient/wbc_pam.c
parent5a313731f3960120c08a06f2c9e9f6ea56ed9f6f (diff)
downloadsamba-96b12e0d59b27913e915ea28b3edaa7023b765c5.tar.gz
samba-96b12e0d59b27913e915ea28b3edaa7023b765c5.tar.bz2
samba-96b12e0d59b27913e915ea28b3edaa7023b765c5.zip
libwbclient: Use winbindd_free_response()
Diffstat (limited to 'nsswitch/libwbclient/wbc_pam.c')
-rw-r--r--nsswitch/libwbclient/wbc_pam.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/nsswitch/libwbclient/wbc_pam.c b/nsswitch/libwbclient/wbc_pam.c
index 00863a0d54..1f76c0a143 100644
--- a/nsswitch/libwbclient/wbc_pam.c
+++ b/nsswitch/libwbclient/wbc_pam.c
@@ -25,6 +25,7 @@
#include "replace.h"
#include "libwbclient.h"
+#include "../winbind_client.h"
/* Authenticate a username/password pair */
wbcErr wbcAuthenticateUser(const char *username,
@@ -487,8 +488,7 @@ wbcErr wbcAuthenticateUserEx(const struct wbcAuthUserParams *params,
}
done:
- if (response.extra_data.data)
- free(response.extra_data.data);
+ winbindd_free_response(&response);
talloc_free(request.extra_data.data);
@@ -1107,8 +1107,7 @@ wbcErr wbcLogonUser(const struct wbcLogonUserParams *params,
}
done:
- if (response.extra_data.data)
- free(response.extra_data.data);
+ winbindd_free_response(&response);
return wbc_status;
}