Module: xenomai-3 Branch: stable-3.0.x Commit: 01559b1495152b24a444aa1a6e81f5d9bf3aed4a URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=01559b1495152b24a444aa1a6e81f5d9bf3aed4a
Author: Philippe Gerum <r...@xenomai.org> Date: Mon Dec 4 17:49:19 2017 +0100 net/tcp: fix invalid reference in getsockopt() --- kernel/drivers/net/stack/ipv4/tcp/tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/drivers/net/stack/ipv4/tcp/tcp.c b/kernel/drivers/net/stack/ipv4/tcp/tcp.c index 8bbb740..b1d01e9 100644 --- a/kernel/drivers/net/stack/ipv4/tcp/tcp.c +++ b/kernel/drivers/net/stack/ipv4/tcp/tcp.c @@ -1822,7 +1822,7 @@ static int rt_tcp_ioctl(struct rtdm_fd *fd, setopt->optlen); case _RTIOC_GETSOCKOPT: - if (setopt->level != SOL_SOCKET) + if (getopt->level != SOL_SOCKET) break; return rt_tcp_getsockopt(fd, ts, getopt->level, getopt->optname, getopt->optval, _______________________________________________ Xenomai-git mailing list Xenomai-git@xenomai.org https://xenomai.org/mailman/listinfo/xenomai-git