isdn: mISDN: set ->family in ->getname()
The "maddr->family" variable was not set but instead it leaked stack information to userspace. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
7a3b68434b
Коммит
d9152097ac
|
@ -578,6 +578,7 @@ data_sock_getname(struct socket *sock, struct sockaddr *addr,
|
|||
lock_sock(sk);
|
||||
|
||||
*addr_len = sizeof(*maddr);
|
||||
maddr->family = AF_ISDN;
|
||||
maddr->dev = _pms(sk)->dev->id;
|
||||
maddr->channel = _pms(sk)->ch.nr;
|
||||
maddr->sapi = _pms(sk)->ch.addr & 0xff;
|
||||
|
|
Загрузка…
Ссылка в новой задаче