Skip to content

Commit

Permalink
define buffer size by INET6_ADDRSTRLEN
Browse files Browse the repository at this point in the history
  • Loading branch information
Peng Yong committed Aug 25, 2024
1 parent ee736b3 commit 30f601b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ipvs/ip_vs_proxy_proto.c
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ int proxy_proto_insert(struct proxy_info *ppinfo, struct dp_vs_conn *conn,
void *rt;
int ppdoff, ppdatalen, room, mtu;
int oaf;
char ppv1buf[108], tbuf1[64], tbuf2[64];
char ppv1buf[108], tbuf1[INET6_ADDRSTRLEN], tbuf2[INET6_ADDRSTRLEN];
struct proxy_hdr_v2 *pphv2;

assert(ppinfo && conn && mbuf && l4hdr);
Expand Down

0 comments on commit 30f601b

Please sign in to comment.