diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-04-22 20:24:14 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-25 01:47:58 -0400 |
commit | d9152097acc5f9fdc0bf1a8e3454634dfae47742 (patch) | |
tree | 7afcef4aac17bdfaeea49501fe5e5ef622fe5aa4 /drivers/isdn/mISDN | |
parent | 7a3b68434b1b5fb7b9a6184efb26822cd1a54cc8 (diff) |
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>
Diffstat (limited to 'drivers/isdn/mISDN')
-rw-r--r-- | drivers/isdn/mISDN/socket.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/isdn/mISDN/socket.c b/drivers/isdn/mISDN/socket.c index 8b07f83d48a..e47dcb9d1e9 100644 --- a/drivers/isdn/mISDN/socket.c +++ b/drivers/isdn/mISDN/socket.c @@ -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; |