mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
smbd: Fix CID 1035365 Buffer not null terminated
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
This commit is contained in:
parent
2a73a4985e
commit
0e19812782
@ -60,8 +60,8 @@ static int collect_sessions_fn(struct smbXsrv_session_global0 *global,
|
||||
sess.uid = global->auth_session_info->unix_token->uid;
|
||||
sess.gid = global->auth_session_info->unix_token->gid;
|
||||
}
|
||||
strncpy(sess.machine, global->channels[0].remote_name, sizeof(sess.machine));
|
||||
strncpy(sess.addr, global->channels[0].remote_address, sizeof(sess.addr));
|
||||
fstrcpy(sess.machine, global->channels[0].remote_name);
|
||||
fstrcpy(sess.addr, global->channels[0].remote_address);
|
||||
|
||||
status = dbwrap_store(state->session_by_pid,
|
||||
make_tdb_data((void*)&id, sizeof(id)),
|
||||
|
Loading…
Reference in New Issue
Block a user