mirror of
https://github.com/samba-team/samba.git
synced 2025-03-10 12:58:35 +03:00
Merge from HEAD:
>must add one to the extra_data size to transfer the 0 string terminator. >This was causing "wbinfo --sequence" to access past the end of malloced >memory.
This commit is contained in:
parent
dff4c93d85
commit
a3c4f013d6
@ -180,7 +180,8 @@ enum winbindd_result winbindd_show_sequence(struct winbindd_cli_state *state)
|
||||
}
|
||||
|
||||
state->response.extra_data = extra_data;
|
||||
state->response.length += strlen(extra_data);
|
||||
/* must add one to length to copy the 0 for string termination */
|
||||
state->response.length += strlen(extra_data) + 1;
|
||||
|
||||
return WINBINDD_OK;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user