fix if_nametoindex return value when socket open fails
authorRon Yorston <rmy@frippery.org>
Fri, 15 Jan 2016 09:39:44 +0000 (09:39 +0000)
committerRich Felker <dalias@aerifal.cx>
Sun, 17 Jan 2016 22:33:49 +0000 (17:33 -0500)
commit3cdbfb99c3beda1e04efcc94f0af2abc8dc5d4ad
treef144fe52580b92edbd5bba528925d52caad3a250
parent2f853dd6b9a95d5b13ee8f9df762125e0588df5d
fix if_nametoindex return value when socket open fails

The return value of if_nametoindex is unsigned; it should return 0
on error.
src/network/if_nametoindex.c