int rc;
NTSTATUS status;
- state = talloc(ev_ctx, struct dcerpc_ncacn_listen_state);
- if (!state) {
+ state = talloc_zero(ev_ctx, struct dcerpc_ncacn_listen_state);
+ if (state == NULL) {
DBG_ERR("Out of memory\n");
return NT_STATUS_NO_MEMORY;
}
int rc;
NTSTATUS status;
- state = talloc(ev_ctx, struct dcerpc_ncacn_listen_state);
+ state = talloc_zero(ev_ctx, struct dcerpc_ncacn_listen_state);
if (state == NULL) {
DBG_ERR("Out of memory\n");
return NT_STATUS_NO_MEMORY;
int rc;
NTSTATUS status;
- state = talloc(ev_ctx, struct dcerpc_ncacn_listen_state);
+ state = talloc_zero(ev_ctx, struct dcerpc_ncacn_listen_state);
if (state == NULL) {
DBG_ERR("Out of memory\n");
return NT_STATUS_NO_MEMORY;