mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
- Fix ktrace leakage if error is set
PR: kern/163098 Submitted by: Loganaden Velvindron <loganaden@devio.us> Approved by: sbruno@ MFC after: 1 month
This commit is contained in:
parent
b5828c5723
commit
5a01b72672
1 changed files with 1 additions and 1 deletions
|
|
@ -478,7 +478,7 @@ ktrsysret(code, error, retval)
|
|||
ktp = &req->ktr_data.ktr_sysret;
|
||||
ktp->ktr_code = code;
|
||||
ktp->ktr_error = error;
|
||||
ktp->ktr_retval = retval; /* what about val2 ? */
|
||||
ktp->ktr_retval = ((error == 0) ? retval: 0); /* what about val2 ? */
|
||||
ktr_submitrequest(curthread, req);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue