mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
r14261: Fix coverity #38. No null deref.
Jeremy. (This used to be commit 2a2b966b7b92ac340d61ba157d207a42509a93d1)
This commit is contained in:
parent
1ab0d76f02
commit
15603e1c2f
@ -960,6 +960,12 @@ int cac_Shutdown(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, struct Shutdown *op)
|
|||||||
hnd->_internal.pipes[PI_SHUTDOWN] = True;
|
hnd->_internal.pipes[PI_SHUTDOWN] = True;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pipe_hnd = cac_GetPipe(hnd, PI_SHUTDOWN);
|
||||||
|
if(!pipe_hnd) {
|
||||||
|
hnd->status = NT_STATUS_INVALID_HANDLE;
|
||||||
|
return CAC_FAILURE;
|
||||||
|
}
|
||||||
|
|
||||||
msg = (op->in.message != NULL) ? op->in.message : talloc_strdup(mem_ctx, "");
|
msg = (op->in.message != NULL) ? op->in.message : talloc_strdup(mem_ctx, "");
|
||||||
|
|
||||||
hnd->status = NT_STATUS_OK;
|
hnd->status = NT_STATUS_OK;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user