diff options
author | Martin Mares <mj@ucw.cz> | 2000-05-08 12:37:24 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-05-08 12:37:24 +0000 |
commit | 507eea4c8b4c52a5ddf232bc180a7a42cf29f074 (patch) | |
tree | 3bfc8b310632bdc2bd12ed4263da66d2daa4b3fd /proto | |
parent | 9cbf43eb8a7e0186144e95d7b244e0c69b0e9189 (diff) |
Don't generate corrupted packets when sending only route deletes.
Diffstat (limited to 'proto')
-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 6fabacfa..88d960d8 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; |