HomeFreeBSD

Set value->v.octetstring.len to a correct value on malloc success/failure

Description

Set value->v.octetstring.len to a correct value on malloc success/failure

The previous code always set value->v.octetstring.len to len, regardless
of the result from the malloc call. This misleads the caller on malloc
failure. Set .len to len on success and 0 on failure.

MFC after: 1 week
Reported by: Coverity
CID: 1007590

Details

Provenance
ngieAuthored on
Parents
rS310953: MFC r309893,r309929:
Branches
Unknown
Tags
Unknown