git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80b2e33
)
Allow NULL request and/or response pointers to be passed to wbcRequestResponse().
author
Gerald W. Carter
<jerry@samba.org>
Tue, 29 Jan 2008 20:49:38 +0000
(14:49 -0600)
committer
Gerald W. Carter
<jerry@samba.org>
Tue, 29 Jan 2008 20:49:38 +0000
(14:49 -0600)
This is a valid parameter set for things like setpwent() and ping().
(This used to be commit
c1cdf6085329d55cf29ccc8c980fc853a03a695e
)
source3/nsswitch/libwbclient/wbclient.c
patch
|
blob
|
history
diff --git
a/source3/nsswitch/libwbclient/wbclient.c
b/source3/nsswitch/libwbclient/wbclient.c
index 42a994352382dece099f6707b391dea2f29ed374..304e49cf551689aeff8f48be53d8a42231a25a9d 100644
(file)
--- 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);