]> git.proxmox.com Git - mirror_frr.git/blobdiff - babeld/message.c
Merge pull request #5793 from ton31337/fix/formatting_show_bgp_summary_failed
[mirror_frr.git] / babeld / message.c
index f85a08ac3a62544833e788e2af3bc1da668c38fa..d88790824cc2bf3c8557f2e6ecf7d4b82ff40484 100644 (file)
@@ -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);
@@ -1430,7 +1432,7 @@ send_wildcard_retraction(struct interface *ifp)
 }
 
 void
-update_myseqno()
+update_myseqno(void)
 {
     myseqno = seqno_plus(myseqno, 1);
 }