mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
Ensure 0-termination for the forked-smbd debug output
This commit is contained in:
parent
ac4c319ed7
commit
6d760a4a9f
@ -88,6 +88,7 @@ static void rpc_cli_smbd_stdout_reader(struct event_context *ev,
|
||||
TALLOC_FREE(fde);
|
||||
return;
|
||||
}
|
||||
buf[nread] = '\0';
|
||||
|
||||
if (conn->stdout_callback.fn != NULL) {
|
||||
conn->stdout_callback.fn(buf, nread,
|
||||
|
Loading…
Reference in New Issue
Block a user