Allow NULL request and/or response pointers to be passed to wbcRequestResponse().
authorGerald W. Carter <jerry@samba.org>
Tue, 29 Jan 2008 20:49:38 +0000 (14:49 -0600)
committerGerald 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

index 42a994352382dece099f6707b391dea2f29ed374..304e49cf551689aeff8f48be53d8a42231a25a9d 100644 (file)
@@ -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);