summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2007-12-23 00:33:44 +0100
committerVolker Lendecke <vl@samba.org>2007-12-23 00:49:32 +0100
commit85065a4f364baa4a43cd3b4d1fb0c8e2a0152855 (patch)
tree058d7014c52f9531f652bb2d148c45cc613c3467
parent9cd009b031a7cc076bb3cbb945c4ec528ea731a1 (diff)
downloadsamba-85065a4f364baa4a43cd3b4d1fb0c8e2a0152855.tar.gz
samba-85065a4f364baa4a43cd3b4d1fb0c8e2a0152855.tar.bz2
samba-85065a4f364baa4a43cd3b4d1fb0c8e2a0152855.zip
Fix wbcPing()
Without request and response, wbcRequestResponse() will always return WBC_ERR_INVALID_PARAM, so the ping will never reach winbind. (This used to be commit 9a24753d35a4b1a283a65c60088d82e4b80f14c8)
-rw-r--r--source3/nsswitch/libwbclient/wbc_util.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/source3/nsswitch/libwbclient/wbc_util.c b/source3/nsswitch/libwbclient/wbc_util.c
index b0adaad318..c6acb27e55 100644
--- a/source3/nsswitch/libwbclient/wbc_util.c
+++ b/source3/nsswitch/libwbclient/wbc_util.c
@@ -33,7 +33,15 @@
wbcErr wbcPing(void)
{
- return wbcRequestResponse(WINBINDD_PING, NULL, NULL);
+ struct winbindd_request request;
+ struct winbindd_response response;
+
+ /* Initialize request */
+
+ ZERO_STRUCT(request);
+ ZERO_STRUCT(response);
+
+ return wbcRequestResponse(WINBINDD_PING, &request, &response);
}
/** @brief Lookup the current status of a trusted domain