diff options
author | Omar Polo <op@omarpolo.com> | 2024-08-03 14:05:21 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2024-08-03 14:05:21 +0000 |
commit | a6b469c41b427f70e285c9e89dcfede523c81a51 (patch) | |
tree | 6b4d5860de44a2f40c99aff9ad6f485b4d2f23ae /proxy-proto.c | |
parent | c6fc5391cbb4500404f9ce3a476bdff155ab21e6 (diff) |
remove unused argument from check_port_v1
Diffstat (limited to 'proxy-proto.c')
-rw-r--r-- | proxy-proto.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/proxy-proto.c b/proxy-proto.c index fe5436d..ecf885f 100644 --- a/proxy-proto.c +++ b/proxy-proto.c @@ -106,7 +106,7 @@ check_ip_v1(int af, void *addr, char **buf) } static int -check_port_v1(uint16_t *port, char **buf, size_t *buflen) +check_port_v1(uint16_t *port, char **buf) { size_t wspc_idx = strcspn(*buf, " \r"); char *wspc = *buf + wspc_idx; @@ -166,8 +166,8 @@ proxy_proto_v1_parse(struct proxy_protocol_v1 *s, char *buf, size_t buflen, return (-1); } - if (check_port_v1(&s->srcport, &buf, &buflen) == -1 || - check_port_v1(&s->dstport, &buf, &buflen) == -1) + if (check_port_v1(&s->srcport, &buf) == -1 || + check_port_v1(&s->dstport, &buf) == -1) return (-1); if (*buf != '\n') |