mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
ath: fix possible memory disclosure in ioctl handler
Submitted by: Domagoj Stolfa <domagoj.stolfa@gmail.com> MFC after: 1 week
This commit is contained in:
parent
218c5b2115
commit
b081d0e406
1 changed files with 1 additions and 1 deletions
|
|
@ -197,7 +197,7 @@ ath_ioctl_diag(struct ath_softc *sc, struct ath_diag *ad)
|
|||
* pointer for us to use below in reclaiming the buffer;
|
||||
* may want to be more defensive.
|
||||
*/
|
||||
outdata = malloc(outsize, M_TEMP, M_NOWAIT);
|
||||
outdata = malloc(outsize, M_TEMP, M_NOWAIT | M_ZERO);
|
||||
if (outdata == NULL) {
|
||||
error = ENOMEM;
|
||||
goto bad;
|
||||
|
|
|
|||
Loading…
Reference in a new issue