1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

don't crash on a NULL priviledge pointer; patch from Jianliang Lu

(This used to be commit 5bbfa9989bcade2e1192a68596de3e574faed1d5)
This commit is contained in:
Gerald Carter 2003-12-04 04:32:22 +00:00
parent 3a1dd0dc77
commit 555ef2d5cf

View File

@ -69,6 +69,12 @@ NTSTATUS dupalloc_luid_attr(TALLOC_CTX *mem_ctx, LUID_ATTR **new_la, LUID_ATTR *
{
NTSTATUS ret;
/* don't crash if the source pointer is NULL (since we don't
do priviledges now anyways) */
if ( !old_la )
return NT_STATUS_OK;
*new_la = (LUID_ATTR *)talloc(mem_ctx, sizeof(LUID_ATTR));
ALLOC_CHECK(new_la, ret, done, "dupalloc_luid_attr");