NTSTATUS push_nbt_netlogon_response(DATA_BLOB *data, TALLOC_CTX *mem_ctx,
struct nbt_netlogon_response *response)
{
- NTSTATUS status = NT_STATUS_INVALID_NETWORK_RESPONSE;
+ NTSTATUS status;
enum ndr_err_code ndr_err;
switch (response->response_type) {
case NETLOGON_GET_PDC:
}
status = NT_STATUS_OK;
break;
+ default:
+ status = NT_STATUS_INVALID_NETWORK_RESPONSE;
+ break;
}
return status;
NTSTATUS pull_nbt_netlogon_response(DATA_BLOB *data, TALLOC_CTX *mem_ctx,
struct nbt_netlogon_response *response)
{
- NTSTATUS status = NT_STATUS_INVALID_NETWORK_RESPONSE;
+ NTSTATUS status;
enum netlogon_command command;
enum ndr_err_code ndr_err;
if (data->length < 4) {
case LOGON_REQUEST:
case NETLOGON_ANNOUNCE_UAS:
case LOGON_SAM_LOGON_REQUEST:
+ default:
status = NT_STATUS_INVALID_NETWORK_RESPONSE;
}