summaryrefslogtreecommitdiff
path: root/source3/nsswitch/libwbclient
diff options
context:
space:
mode:
authorGerald W. Carter <jerry@samba.org>2008-01-29 14:49:38 -0600
committerGerald W. Carter <jerry@samba.org>2008-01-29 14:49:38 -0600
commit9758043a4411f0306bd4fb975777807dff42e235 (patch)
tree0b9731b379954e01e63a2e7e9670fe86ed618897 /source3/nsswitch/libwbclient
parent80b2e330f939d9877352f8fbdbec3a4e0e395c7b (diff)
downloadsamba-9758043a4411f0306bd4fb975777807dff42e235.tar.gz
samba-9758043a4411f0306bd4fb975777807dff42e235.tar.bz2
samba-9758043a4411f0306bd4fb975777807dff42e235.zip
Allow NULL request and/or response pointers to be passed to wbcRequestResponse().
This is a valid parameter set for things like setpwent() and ping(). (This used to be commit c1cdf6085329d55cf29ccc8c980fc853a03a695e)
Diffstat (limited to 'source3/nsswitch/libwbclient')
-rw-r--r--source3/nsswitch/libwbclient/wbclient.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source3/nsswitch/libwbclient/wbclient.c b/source3/nsswitch/libwbclient/wbclient.c
index 42a9943523..304e49cf55 100644
--- a/source3/nsswitch/libwbclient/wbclient.c
+++ b/source3/nsswitch/libwbclient/wbclient.c
@@ -59,11 +59,7 @@ wbcErr wbcRequestResponse(int cmd,
wbcErr wbc_status = WBC_ERR_UNKNOWN_FAILURE;
NSS_STATUS nss_status;
- if (!request || !response) {
- wbc_status = WBC_ERR_INVALID_PARAM;
- BAIL_ON_WBC_ERROR(wbc_status);
- }
-
+ /* for some calls the request and/or response cna be NULL */
nss_status = winbindd_request_response(cmd, request, response);