[zeromq-dev] Patch for resolve_nic_name to get out as soon as it finds the first match

Chris Wong chris at chriswongstudio.com
Fri Mar 5 22:10:21 CET 2010

While debugging the bind failure on Mac OS X, I stumbled across the code in resolve_nic_name  where it's not breaking out of the for loop upon the first match.  Here is a patch to fix that up... unless getting the last match is the intention.  I'm not even sure that there is any guaranteed ordering returned by getifaddrs.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-resolve_nic_name-to-get-out-as-soon-as-it-finds-the-.patch
Type: application/octet-stream
Size: 668 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100305/c23865d5/attachment.obj>
-------------- next part --------------

I'm submitting this patch with the LGPL license.


More information about the zeromq-dev mailing list