]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Don't generate corrupted packets when sending only route deletes.
authorMartin Mares <mj@ucw.cz>
Mon, 8 May 2000 12:37:24 +0000 (12:37 +0000)
committerMartin Mares <mj@ucw.cz>
Mon, 8 May 2000 12:37:24 +0000 (12:37 +0000)
proto/bgp/packets.c

index 6fabacfa8e775c58ac35ad6a118cb2bd09dc3cc8..88d960d8335f435fa8b8db0f790f2e2b7b678a05 100644 (file)
@@ -112,7 +112,7 @@ bgp_create_update(struct bgp_conn *conn, byte *buf)
          break;
        }
     }
-  else
+  if (!a_size)                         /* Attributes not already encoded */
     {
       put_u16(w, 0);
       w += 2;