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
a8f99e79
Commit
a8f99e79
authored
24 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
the gethostbyname_r() usage was improved by Fred Noz
parent
f8e916db
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/hostip.c
+5
-3
5 additions, 3 deletions
lib/hostip.c
with
5 additions
and
3 deletions
lib/hostip.c
+
5
−
3
View file @
a8f99e79
...
...
@@ -62,6 +62,8 @@
#include
"urldata.h"
#include
"sendf.h"
#define _REENTRANT
#ifdef HAVE_INET_NTOA_R
#include
"inet_ntoa_r.h"
#endif
...
...
@@ -139,7 +141,7 @@ struct hostent *GetHost(struct UrlData *data,
&
h_errnop
))
#endif
#ifdef HAVE_GETHOSTBYNAME_R_3
/* AIX, Digital Unix, more? */
/* AIX, Digital Unix,
HPUX 10,
more? */
/* August 4th, 2000. I don't have any such system around so I write this
blindly in hope it might work or that someone else will help me fix
...
...
@@ -147,8 +149,8 @@ struct hostent *GetHost(struct UrlData *data,
h
=
gethostbyname_r
(
hostname
,
(
struct
hostent
*
)
buf
,
(
struct
hostent_data
*
)
buf
+
sizeof
(
struct
hostent
));
*
h_errnop
=
errno
;
/* we don't deal with this, but set it anyway */
(
struct
hostent_data
*
)
(
buf
+
sizeof
(
struct
hostent
))
)
;
h_errnop
=
errno
;
/* we don't deal with this, but set it anyway */
if
(
NULL
==
h
)
#endif
{
...
...
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