Commit 2a75a2bb authored by Linus Nordberg's avatar Linus Nordberg
Browse files

maketlv() makes a copy of v, so free it.

coverity: 1449503
parent 7a47ecf9
......@@ -1127,9 +1127,8 @@ makevendortlv(uint32_t vendor, struct tlv *attr)
tlv2buf(v + 4, attr);
v[5] += 2; /* Vendor length increased for type and length fields. */
newtlv = maketlv(RAD_Attr_Vendor_Specific, l, v);
if (newtlv == NULL)
if (newtlv)
return newtlv;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment