Allow NULL request and/or response pointers to be passed to wbcRequestResponse().
[ira/wip.git] / 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);