mirror of
https://github.com/samba-team/samba.git
synced 2025-10-22 07:33:16 +03:00
r10395: While playing with winbind, I found a segfault because I had given
resolve_name_send a stack-allocated method list. Duplicate it. Volker
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
a9e71ab5d1
commit
17dbbf965b
@@ -133,7 +133,8 @@ struct composite_context *resolve_name_send(struct nbt_name *name, struct event_
|
||||
if (!NT_STATUS_IS_OK(status)) goto failed;
|
||||
|
||||
if (methods == NULL) goto failed;
|
||||
state->methods = methods;
|
||||
state->methods = str_list_copy(state, methods);
|
||||
if (state->methods == NULL) goto failed;
|
||||
|
||||
c->state = SMBCLI_REQUEST_SEND;
|
||||
c->private = state;
|
||||
|
Reference in New Issue
Block a user