Skip to content

Commit

Permalink
lldp: fixed wrong logical not in comparisons
Browse files Browse the repository at this point in the history
  • Loading branch information
mtomaschewski committed Sep 4, 2015
1 parent fd942ed commit 750c414
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lldp.c
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ ni_lldp_tlv_begin(ni_lldp_tlv_t *tlv, ni_buffer_t *bp, unsigned int type)
tlv->type = type;
tlv->begin = ni_buffer_tail(bp);

if (!ni_buffer_put(bp, &dummy, 2) < 0)
if (ni_buffer_put(bp, &dummy, 2) < 0)
return -1;

return 0;
Expand All @@ -822,7 +822,7 @@ ni_lldp_tlv_begin_subtype(ni_lldp_tlv_t *tlv, ni_buffer_t *bp, unsigned int type
return -1;

tlv->subtype = subtype;
if (!ni_buffer_putc(bp, subtype) < 0)
if (ni_buffer_putc(bp, subtype) < 0)
return -1;

return 0;
Expand Down

0 comments on commit 750c414

Please sign in to comment.