mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
socket: Only log splice structs to ktrace if KTR_STRUCT is configured
Fixes:a1da7dc1cd("socket: Implement SO_SPLICE") (cherry picked from commit283bf3b4b1)
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