@@ -0,0 +1,19 @@
+--- src/bgp/bgp.c.orig 2010-04-08 23:20:31.549999263 +0200
++++ src/bgp/bgp.c 2010-04-08 23:21:28.696523637 +0200
+@@ -70,6 +70,7 @@
+ u_int32_t remote_as4 = 0;
+ time_t now;
+ struct hosts_table allow;
++ char *str_buf;
+
+ /* select() stuff */
+ fd_set read_descs, bkp_read_descs;
+@@ -283,7 +284,7 @@
+ }
+ else {
+ if (peer->buf.len > BGP_MAX_PACKET_SIZE) {
+- realloc(peer->buf.base, BGP_MAX_PACKET_SIZE);
++ str_buf = realloc(peer->buf.base, BGP_MAX_PACKET_SIZE);
+ memset(peer->buf.base, 0, BGP_MAX_PACKET_SIZE);
+ peer->buf.len = BGP_MAX_PACKET_SIZE;
+ }
|