mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
linux: Fix a typo in linux_recvmsg_common
We are supposed to check the result of bsd_to_linux_sockopt_level here
rather than its input.
(cherry picked from commit 9f55630b8d)
This commit is contained in:
parent
eca3c0515b
commit
a5918bfbf9
1 changed files with 1 additions and 1 deletions
|
|
@ -1856,7 +1856,7 @@ linux_recvmsg_common(struct thread *td, l_int s, struct l_msghdr *msghdr,
|
|||
lcm->cmsg_level = bsd_to_linux_sockopt_level(cm->cmsg_level);
|
||||
|
||||
if (lcm->cmsg_type == -1 ||
|
||||
cm->cmsg_level == -1) {
|
||||
lcm->cmsg_level == -1) {
|
||||
LINUX_RATELIMIT_MSG_OPT2(
|
||||
"unsupported recvmsg cmsg level %d type %d",
|
||||
cm->cmsg_level, cm->cmsg_type);
|
||||
|
|
|
|||
Loading…
Reference in a new issue