summaryrefslogtreecommitdiffstats
path: root/drivers/isdn/mISDN
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-04-22 22:24:14 +0200
committerDavid S. Miller <davem@davemloft.net>2013-04-25 07:47:58 +0200
commitd9152097acc5f9fdc0bf1a8e3454634dfae47742 (patch)
tree7afcef4aac17bdfaeea49501fe5e5ef622fe5aa4 /drivers/isdn/mISDN
parentnetrom: info leak in ->getname() (diff)
downloadlinux-d9152097acc5f9fdc0bf1a8e3454634dfae47742.tar.xz
linux-d9152097acc5f9fdc0bf1a8e3454634dfae47742.zip
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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/isdn/mISDN/socket.c b/drivers/isdn/mISDN/socket.c
index 8b07f83d48ad..e47dcb9d1e91 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;