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
36e9507e
Commit
36e9507e
authored
23 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
reverted. twas no memory leak and the "fix" didn't even compile on windows...
parent
1fde1431
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
+3
-4
3 additions, 4 deletions
lib/hostip.c
with
3 additions
and
4 deletions
lib/hostip.c
+
3
−
4
View file @
36e9507e
...
...
@@ -125,8 +125,6 @@ struct hostent *Curl_gethost(struct SessionHandle *data,
{
struct
hostent
*
h
=
NULL
;
unsigned
long
in
;
#ifdef HAVE_GETHOSTBYNAME_R
int
ret
;
/* this variable is unused on several platforms but used on some */
#define CURL_NAMELOOKUP_SIZE 9000
...
...
@@ -138,7 +136,7 @@ struct hostent *Curl_gethost(struct SessionHandle *data,
if
(
!
buf
)
return
NULL
;
/* major failure */
*
bufp
=
buf
;
#endif
ret
=
0
;
/* to prevent the compiler warning */
if
(
(
in
=
inet_addr
(
hostname
))
!=
INADDR_NONE
)
{
...
...
@@ -208,9 +206,10 @@ struct hostent *Curl_gethost(struct SessionHandle *data,
}
#else
else
{
*
bufp
=
NULL
;
/* zero this always */
if
((
h
=
gethostbyname
(
hostname
))
==
NULL
)
{
infof
(
data
,
"gethostbyname(2) failed for %s
\n
"
,
hostname
);
free
(
buf
);
*
bufp
=
NULL
;
}
#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