HomeFreeBSD

Since rdata is only used as an argument to the immediately following

Description

Since rdata is only used as an argument to the immediately following
call to res_nopt_rdata(), revert r299879 and fix CID 603941 by moving
rdata = &buf[n];
inside the if block.

Reported by: Coverity
CID: 603941

Details

Provenance
truckmanAuthored on
Parents
rS299879: Likely a false positive ... but make sure that -1 can't be used as an
Branches
Unknown
Tags
Unknown