lldpad: correctly allocate buffer in clif_attach_helper

Need to allocate 2 extra bytes one for "A" and one for the null
terminator.

I pulled this patch out of a Fedora18 rpm. I'm guessing Petr Sabatr
is to thank.

Reported-by: Ross Brattain <ross.b.brattain@intel.com>
CC: Petr Sabata <psabata@redhat.com>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
dcbtool: Check for errors in app:fip syntax

An error check in processing app:fip was omitted from
parse_cli.l, so add it.

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Tested-by: Jack Morgan<jack.morgan@intel.com>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
lldpad: Fix mand_data list corruption

In an error path, a mand_data structure is freed
while still on a list. Remove the structure from
the list before freeing it. Also call mand_free_tlv
because just because mand_bld_tlv returns an error
doesn't mean that it didn't allocate some tlvs
that need to be freed.

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>