提交 b8216468 编写于 作者: E Emrah Demir 提交者: David S. Miller

mISDN: Fixing missing validation in base_sock_bind()

Add validation code into mISDN/socket.c
Signed-off-by: NEmrah Demir <ed@abdsec.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 70af921d
......@@ -715,6 +715,9 @@ base_sock_bind(struct socket *sock, struct sockaddr *addr, int addr_len)
if (!maddr || maddr->family != AF_ISDN)
return -EINVAL;
if (addr_len < sizeof(struct sockaddr_mISDN))
return -EINVAL;
lock_sock(sk);
if (_pms(sk)->dev) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册