Fix wbcPing()
authorVolker Lendecke <vl@samba.org>
Sat, 22 Dec 2007 23:33:44 +0000 (00:33 +0100)
committerVolker Lendecke <vl@samba.org>
Sat, 22 Dec 2007 23:49:32 +0000 (00:49 +0100)
Without request and response, wbcRequestResponse() will always return
WBC_ERR_INVALID_PARAM, so the ping will never reach winbind.

source/nsswitch/libwbclient/wbc_util.c

index b0adaad3182cda7bb4346d56709dcf885be18ebe..c6acb27e558e67ef14ee8107f548810d1a68bf5a 100644 (file)
 
 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