mirror of https://github.com/F-Stack/f-stack.git
The disclosure in the TCP network stack was introduced in 11.0.
Corresponding upstream changeset from https://www.freebsd.org/security/advisories/FreeBSD-EN-18:05.mem.asc.
This commit is contained in:
parent
d0b1b30af0
commit
da6a6342a9
|
@ -1566,7 +1566,9 @@ tcp_ctloutput(struct socket *so, struct sockopt *sopt)
|
|||
return (error);
|
||||
} else if ((sopt->sopt_dir == SOPT_GET) &&
|
||||
(sopt->sopt_name == TCP_FUNCTION_BLK)) {
|
||||
strcpy(fsn.function_set_name, tp->t_fb->tfb_tcp_block_name);
|
||||
strncpy(fsn.function_set_name, tp->t_fb->tfb_tcp_block_name,
|
||||
TCP_FUNCTION_NAME_LEN_MAX);
|
||||
fsn.function_set_name[TCP_FUNCTION_NAME_LEN_MAX - 1] = '\0';
|
||||
fsn.pcbcnt = tp->t_fb->tfb_refcnt;
|
||||
INP_WUNLOCK(inp);
|
||||
error = sooptcopyout(sopt, &fsn, sizeof fsn);
|
||||
|
|
Loading…
Reference in New Issue