diff options
| author | Mark Stapp <mjs@voltanet.io> | 2019-06-04 15:06:26 -0400 |
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2019-06-06 13:13:15 -0400 |
| commit | fa3bf3a21b25b83385ba06754d362e37444c40e2 (patch) | |
| tree | 377d5994d5d0544a49ee7e85871cbdfcd5d2e14a /babeld/message.c | |
| parent | 695a52fd5e918906098f863829b5ca91dbfce08f (diff) | |
lib,bgpd,babeld,ripngd,nhrpd,bfdd: clean up SA warnings
Clean up several SA warnings.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'babeld/message.c')
| -rw-r--r-- | babeld/message.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/babeld/message.c b/babeld/message.c index 794b6e9976..d88790824c 100644 --- a/babeld/message.c +++ b/babeld/message.c @@ -1115,7 +1115,9 @@ really_send_update(struct interface *ifp, if(channels_len >= 0) { accumulate_byte(ifp, 2); accumulate_byte(ifp, channels_len); - accumulate_bytes(ifp, channels, channels_len); + + if (channels && channels_len > 0) + accumulate_bytes(ifp, channels, channels_len); } end_message(ifp, MESSAGE_UPDATE, 10 + (real_plen + 7) / 8 - omit + channels_size); |
