Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
fe37fb59
Commit
fe37fb59
authored
23 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
Philip Gladstone's 64-bit sparc native compiler compatibility issues fixed.
parent
221ecd0a
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/connect.c
+4
-3
4 additions, 3 deletions
lib/connect.c
lib/ftp.c
+2
-2
2 additions, 2 deletions
lib/ftp.c
lib/hostip.c
+1
-1
1 addition, 1 deletion
lib/hostip.c
with
7 additions
and
6 deletions
lib/connect.c
+
4
−
3
View file @
fe37fb59
...
...
@@ -193,7 +193,7 @@ static CURLcode bindlocal(struct connectdata *conn,
#ifdef HAVE_INET_NTOA
#ifndef INADDR_NONE
#define INADDR_NONE (
unsigned long
) ~0
#define INADDR_NONE (
in_addr_t
) ~0
#endif
struct
SessionHandle
*
data
=
conn
->
data
;
...
...
@@ -207,7 +207,7 @@ static CURLcode bindlocal(struct connectdata *conn,
char
*
hostdataptr
=
NULL
;
size_t
size
;
char
myhost
[
256
]
=
""
;
unsigned
long
in
;
in_addr_t
in
;
if
(
Curl_if2ip
(
data
->
set
.
device
,
myhost
,
sizeof
(
myhost
)))
{
h
=
Curl_getaddrinfo
(
data
,
myhost
,
0
,
&
hostdataptr
);
...
...
@@ -236,7 +236,8 @@ static CURLcode bindlocal(struct connectdata *conn,
infof
(
data
,
"We bind local end to %s
\n
"
,
myhost
);
if
(
(
in
=
inet_addr
(
myhost
))
!=
INADDR_NONE
)
{
in
=
inet_addr
(
myhost
);
if
(
INADDR_NONE
!=
in
)
{
if
(
h
)
{
memset
((
char
*
)
&
sa
,
0
,
sizeof
(
sa
));
...
...
This diff is collapsed.
Click to expand it.
lib/ftp.c
+
2
−
2
View file @
fe37fb59
...
...
@@ -1211,10 +1211,10 @@ CURLcode ftp_use_port(struct connectdata *conn)
if
(
bind
(
portsock
,
(
struct
sockaddr
*
)
&
sa
,
size
)
>=
0
)
{
/* we succeeded to bind */
struct
sockaddr_in
add
;
size
=
sizeof
(
add
);
socklen_t
sock
size
=
sizeof
(
add
);
if
(
getsockname
(
portsock
,
(
struct
sockaddr
*
)
&
add
,
(
sock
len_t
*
)
&
size
)
<
0
)
{
&
socksize
)
<
0
)
{
failf
(
data
,
"getsockname() failed"
);
return
CURLE_FTP_PORT_FAILED
;
}
...
...
This diff is collapsed.
Click to expand it.
lib/hostip.c
+
1
−
1
View file @
fe37fb59
...
...
@@ -265,7 +265,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct SessionHandle *data,
char
**
bufp
)
{
struct
hostent
*
h
=
NULL
;
unsigned
long
in
;
in_addr_t
in
;
int
ret
;
/* this variable is unused on several platforms but used on some */
#define CURL_NAMELOOKUP_SIZE 9000
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment