Page MenuHomeFreeBSD

sctp: initialize inp to avoid uninitialized use
ClosedPublic

Authored by bz on Sat, Apr 18, 1:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 22, 1:27 AM
Unknown Object (File)
Sun, Apr 19, 7:25 PM
Unknown Object (File)
Sun, Apr 19, 5:28 PM
Unknown Object (File)
Sat, Apr 18, 10:40 PM

Details

Summary

If we take an early goto out_unlocked inp is uninitialized and then
may be used in SCTP_LTRACE_ERR_RET(). Initialize inp to NULL
to avoid warnings.

Found with: gcc15 tinderbox run
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable