Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
71c780da
Commit
71c780da
authored
Jan 24, 2002
by
Martin Pool
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check_name: Print out name *before* clobbering it.
parent
3b18cba8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
socket.c
socket.c
+5
-5
No files found.
socket.c
View file @
71c780da
...
...
@@ -710,11 +710,11 @@ int check_name(int fd,
hints
.
ai_socktype
=
SOCK_STREAM
;
error
=
getaddrinfo
(
name_buf
,
port_buf
,
&
hints
,
&
res0
);
if
(
error
)
{
strcpy
(
name_buf
,
default_name
);
rprintf
(
FERROR
,
RSYNC_NAME
": forward name lookup for %s:%s failed: %s
\n
"
,
name_buf
,
port_buf
,
gai_strerror
(
error
));
strcpy
(
name_buf
,
default_name
);
return
error
;
}
...
...
@@ -730,14 +730,14 @@ int check_name(int fd,
}
if
(
res
==
NULL
)
{
strcpy
(
name_buf
,
default_name
);
/* We hit the end of the list without finding an
* address that was the same as ss. */
rprintf
(
FERROR
,
RSYNC_NAME
":
no address record for
\"
%s
\"
corresponds to address %s
: "
":
%s is not a known address for
\"
%s
\"
: "
"spoofed address?
\n
"
,
name_buf
,
client_addr
(
fd
));
client_addr
(
fd
),
name_buf
);
strcpy
(
name_buf
,
default_name
);
}
freeaddrinfo
(
res0
);
...
...
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