Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Synchronet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
138
Issues
138
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main
Synchronet
Commits
598ad56b
Commit
598ad56b
authored
Nov 21, 2020
by
Deon George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change buflen to size_t consitent with other recommendations, and change 'Working out' to LOG_DEBUG
parent
fd42f821
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/xpdev/multisock.c
src/xpdev/multisock.c
+2
-2
No files found.
src/xpdev/multisock.c
View file @
598ad56b
...
...
@@ -293,7 +293,7 @@ static BOOL read_socket(SOCKET sock, char *buffer, size_t len, int (*lprintf)(in
return
TRUE
;
}
static
BOOL
read_socket_line
(
SOCKET
sock
,
char
*
buffer
,
in
t
buflen
,
int
(
*
lprintf
)(
int
level
,
const
char
*
fmt
,
...))
static
BOOL
read_socket_line
(
SOCKET
sock
,
char
*
buffer
,
size_
t
buflen
,
int
(
*
lprintf
)(
int
level
,
const
char
*
fmt
,
...))
{
int
i
;
...
...
@@ -368,7 +368,7 @@ SOCKET DLLCALL xpms_accept(struct xpms_set *xpms_set, union xp_sockaddr * addr,
// http://www.haproxy.org/download/1.8/doc/proxy-protocol.txt
if
(
flags
&
XPMS_ACCEPT_FLAG_HAPROXY
)
{
memset
(
addr
,
0
,
sizeof
(
*
addr
));
xpms_set
->
lprintf
(
LOG_
INFO
,
"%04d Working out client address from HAProxy PROTO"
,
ret
);
xpms_set
->
lprintf
(
LOG_
DEBUG
,
"%04d Working out client address from HAProxy PROTO"
,
ret
);
// Read the first line
if
(
!
read_socket_line
(
ret
,
hapstr
,
108
,
xpms_set
->
lprintf
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment