Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
relibc
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
Container Registry
Model registry
Operate
Environments
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
schyrsivochter
relibc
Commits
057d2390
Commit
057d2390
authored
6 years ago
by
jD91mZM2
Browse files
Options
Downloads
Plain Diff
Merge branch 'bugfix/netdb-gethostent' into 'master'
Don't drop the host aliases pointer vector in `gethostent` Closes
#130
See merge request
!170
parents
edb95246
49259d3f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/header/netdb/mod.rs
+2
-0
2 additions, 0 deletions
src/header/netdb/mod.rs
with
2 additions
and
0 deletions
src/header/netdb/mod.rs
+
2
−
0
View file @
057d2390
...
@@ -120,6 +120,7 @@ static mut HOST_ENTRY: hostent = hostent {
...
@@ -120,6 +120,7 @@ static mut HOST_ENTRY: hostent = hostent {
};
};
static
mut
HOST_NAME
:
Option
<
Vec
<
u8
>>
=
None
;
static
mut
HOST_NAME
:
Option
<
Vec
<
u8
>>
=
None
;
static
mut
HOST_ALIASES
:
Option
<
Vec
<
Vec
<
u8
>>>
=
None
;
static
mut
HOST_ALIASES
:
Option
<
Vec
<
Vec
<
u8
>>>
=
None
;
static
mut
_HOST_ALIASES
:
Option
<
Vec
<*
mut
i8
>>
=
None
;
static
mut
HOST_ADDR
:
Option
<
in_addr
>
=
None
;
static
mut
HOST_ADDR
:
Option
<
in_addr
>
=
None
;
static
mut
HOST_ADDR_LIST
:
[
*
mut
c_char
;
2
]
=
[
ptr
::
null_mut
();
2
];
static
mut
HOST_ADDR_LIST
:
[
*
mut
c_char
;
2
]
=
[
ptr
::
null_mut
();
2
];
static
mut
_HOST_ADDR_LIST
:
[
u8
;
4
]
=
[
0u8
;
4
];
static
mut
_HOST_ADDR_LIST
:
[
u8
;
4
]
=
[
0u8
;
4
];
...
@@ -649,6 +650,7 @@ pub unsafe extern "C" fn gethostent() -> *const hostent {
...
@@ -649,6 +650,7 @@ pub unsafe extern "C" fn gethostent() -> *const hostent {
h_length
:
4
,
h_length
:
4
,
h_addr_list
:
HOST_ADDR_LIST
.as_mut_ptr
(),
h_addr_list
:
HOST_ADDR_LIST
.as_mut_ptr
(),
};
};
_HOST_ALIASES
=
Some
(
host_aliases
);
if
HOST_STAYOPEN
==
0
{
if
HOST_STAYOPEN
==
0
{
endhostent
();
endhostent
();
}
}
...
...
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