mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05:00
socket: Only log splice structs to ktrace if KTR_STRUCT is configured
Fixes: a1da7dc1cdad ("socket: Implement SO_SPLICE")
(cherry picked from commit 283bf3b4b105ad24e919444ab0e21f3296891283)
This commit is contained in:
parent
032014aaae
commit
4601b3e04d
1 changed files with 2 additions and 1 deletions
|
|
@ -3952,7 +3952,8 @@ sosetopt(struct socket *so, struct sockopt *sopt)
|
|||
if (error)
|
||||
goto bad;
|
||||
#ifdef KTRACE
|
||||
ktrsplice(&splice);
|
||||
if (KTRPOINT(curthread, KTR_STRUCT))
|
||||
ktrsplice(&splice);
|
||||
#endif
|
||||
|
||||
error = splice_init();
|
||||
|
|
|
|||
Loading…
Reference in a new issue