From 507eea4c8b4c52a5ddf232bc180a7a42cf29f074 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 8 May 2000 12:37:24 +0000 Subject: Don't generate corrupted packets when sending only route deletes. --- proto/bgp/packets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proto') 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; -- cgit v1.2.3