summaryrefslogtreecommitdiffstats
path: root/proto/bgp
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-05-08 14:37:24 +0200
committerMartin Mares <mj@ucw.cz>2000-05-08 14:37:24 +0200
commit507eea4c8b4c52a5ddf232bc180a7a42cf29f074 (patch)
tree3bfc8b310632bdc2bd12ed4263da66d2daa4b3fd /proto/bgp
parent9cbf43eb8a7e0186144e95d7b244e0c69b0e9189 (diff)
downloadbird-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.c2
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;