Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
>
pmacct
> pmacct-0.12.3-bgp.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File pmacct-0.12.3-bgp.patch of Package pmacct (Revision 23)
Currently displaying revision
23
,
show latest
--- src/bgp/bgp.c.orig 2010-07-31 13:22:02.117866605 +0200 +++ src/bgp/bgp.c 2010-07-31 13:23:52.751094500 +0200 @@ -57,6 +57,7 @@ struct bgp_open *bopen; char bgp_packet[BGP_MAX_PACKET_SIZE], *bgp_packet_ptr; char bgp_reply_pkt[BGP_MAX_PACKET_SIZE], *bgp_reply_pkt_ptr; + char *str_buf; #if defined ENABLE_IPV6 struct sockaddr_storage server, client; struct ipv6_mreq multi_req6; @@ -309,7 +310,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; }