diff options
author | Martin Mares <mj@ucw.cz> | 2000-05-08 14:37:24 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-05-08 14:37:24 +0200 |
commit | 507eea4c8b4c52a5ddf232bc180a7a42cf29f074 (patch) | |
tree | 3bfc8b310632bdc2bd12ed4263da66d2daa4b3fd /proto/bgp | |
parent | 9cbf43eb8a7e0186144e95d7b244e0c69b0e9189 (diff) | |
download | bird-507eea4c8b4c52a5ddf232bc180a7a42cf29f074.tar bird-507eea4c8b4c52a5ddf232bc180a7a42cf29f074.zip |
Don't generate corrupted packets when sending only route deletes.
Diffstat (limited to 'proto/bgp')
-rw-r--r-- | proto/bgp/packets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c index 6fabacf..88d960d 100644 --- a/proto/bgp/packets.c +++ b/proto/bgp/packets.c @@ -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; |