lib:socket: Return early if we have only one interface
authorAndreas Schneider <asn@samba.org>
Thu, 7 Dec 2017 14:54:13 +0000 (15:54 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 20 Mar 2018 22:16:16 +0000 (23:16 +0100)
commitda68a1b2f417ec82ea4ed3e7a4d867cef8ca8f93
tree744f0f0e7f621a3fc32b5a3ca6ac34f573465f24
parentdcd0a7f738dabc67aef73abc805eb9eb0d226e8d
lib:socket: Return early if we have only one interface

This fixes compilation with -Wstrict-overflow=2

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/socket/interfaces.c