break;
default:
- return NT_STATUS_INVALID_INFO_CLASS;
+ status = NT_STATUS_INVALID_INFO_CLASS;
+ goto done;
}
/* Get sam policy handle */
&types,
&result);
if (!NT_STATUS_IS_OK(status)) {
- return status;
+ goto done;
}
if (!NT_STATUS_IS_OK(result)) {
- return result;
+ status = result;
+ goto done;
}
if (rids.count != 1) {
- return NT_STATUS_INVALID_NETWORK_RESPONSE;
+ status = NT_STATUS_INVALID_NETWORK_RESPONSE;
+ goto done;
}
if (types.count != 1) {
- return NT_STATUS_INVALID_NETWORK_RESPONSE;
+ status = NT_STATUS_INVALID_NETWORK_RESPONSE;
+ goto done;
}
status = dcerpc_samr_OpenUser(b, frame,
&user_pol,
&result);
if (!NT_STATUS_IS_OK(status)) {
- return status;
+ goto done;
}
if (!NT_STATUS_IS_OK(result)) {
- return result;
+ status = result;
+ goto done;
}
}
&result);
break;
default:
- return NT_STATUS_INVALID_PARAMETER;
+ status = NT_STATUS_INVALID_PARAMETER;
+ goto done;
}
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0,("status: %s\n", nt_errstr(status)));