From 9b1f9da43617d4bd370d5f18fea9b2533e417685 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 4 Apr 2010 12:12:12 +0200 Subject: libwbclient: Streamline result processing of wbcCredentialCache() --- nsswitch/libwbclient/wbc_pam.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'nsswitch/libwbclient/wbc_pam.c') diff --git a/nsswitch/libwbclient/wbc_pam.c b/nsswitch/libwbclient/wbc_pam.c index c914d597f0..b35284b243 100644 --- a/nsswitch/libwbclient/wbc_pam.c +++ b/nsswitch/libwbclient/wbc_pam.c @@ -1223,11 +1223,9 @@ wbcErr wbcCredentialCache(struct wbcCredentialCacheParams *params, goto fail; } - TALLOC_FREE(request.extra_data.data); - winbindd_free_response(&response); *info = result; - return WBC_ERR_SUCCESS; - + result = NULL; + status = WBC_ERR_SUCCESS; fail: TALLOC_FREE(request.extra_data.data); winbindd_free_response(&response); -- cgit