HomeFreeBSD

Fix possible use of invalid pointer.

Description

Fix possible use of invalid pointer.

It was possible to use an invalid pointer to get the target ID value. To fix
this, initialize a local Target ID variable to an invalid value and change that
variable to a valid value only if the pointer to the Target ID is not NULL.

Reviewed by: ken, scottl, ambrisko, asomers
Approved by: ken, scottl, ambrisko
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D6100

Details

Committed
slmMay 9 2016, 4:26 PM
Reviewer
ken
Differential Revision
D6100: Prevent use of invalid pointer when getting target ID
Parents
rS299268: Change logging level for a debug string to use MPR_LOG instead of MPR_INFO.
Branches
Unknown
Tags
Unknown