We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2103

Summary: Wrong IP addresses from SDLNet_GetLocalAddresses
Product: SDL_net Reporter: Mārtiņš Možeiko <mm.5p4mbox>
Component: miscAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2    
Version: unspecified   
Hardware: x86_64   
OS: Windows 7   

Description Mārtiņš Možeiko 2013-09-17 22:48:33 UTC
On Windows IP address list returned by SDLNet_GetLocalAddresses function returns IP address of first adapter for all adapters.

Instead of:

for (pAddress = &pAdapterInfo->IpAddressList; pAddress; pAddress = pAddress->Next) {

There should be this:

for (pAddress = &pAdapter->IpAddressList; pAddress; pAddress = pAddress->Next) {
Comment 1 Sam Lantinga 2013-09-28 06:27:02 UTC
Good catch, thanks!
http://hg.libsdl.org/SDL_net/rev/c98cd1a60729