Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
0bbce793
Commit
0bbce793
authored
Mar 16, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Mar 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Don't crash when enumerating PtP interfaces.
parent
914472ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
ifenum.c
dlls/iphlpapi/ifenum.c
+4
-2
No files found.
dlls/iphlpapi/ifenum.c
View file @
0bbce793
...
...
@@ -807,7 +807,8 @@ ULONG v6addressesFromIndex(DWORD index, SOCKET_ADDRESS **addrs, ULONG *num_addrs
getInterfaceNameByIndex
(
index
,
name
);
for
(
p
=
ifa
,
n
=
0
;
p
;
p
=
p
->
ifa_next
)
if
(
p
->
ifa_addr
->
sa_family
==
AF_INET6
&&
!
strcmp
(
name
,
p
->
ifa_name
))
if
(
p
->
ifa_addr
&&
p
->
ifa_addr
->
sa_family
==
AF_INET6
&&
!
strcmp
(
name
,
p
->
ifa_name
))
n
++
;
if
(
n
)
{
...
...
@@ -820,7 +821,8 @@ ULONG v6addressesFromIndex(DWORD index, SOCKET_ADDRESS **addrs, ULONG *num_addrs
for
(
p
=
ifa
,
n
=
0
;
p
;
p
=
p
->
ifa_next
)
{
if
(
p
->
ifa_addr
->
sa_family
==
AF_INET6
&&
!
strcmp
(
name
,
p
->
ifa_name
))
if
(
p
->
ifa_addr
&&
p
->
ifa_addr
->
sa_family
==
AF_INET6
&&
!
strcmp
(
name
,
p
->
ifa_name
))
{
struct
sockaddr_in6
*
addr
=
(
struct
sockaddr_in6
*
)
p
->
ifa_addr
;
...
...
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