1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

nwrap: slightly clean flow by removing an else branch in nwrap_getaddrinfo

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Michael Adam 2015-11-09 00:55:00 +01:00
parent 559ed74a5a
commit be182bab2e

View File

@ -5102,11 +5102,10 @@ static int nwrap_getaddrinfo(const char *node,
}
s = getservbyname(service, proto);
if (s != NULL) {
port = ntohs(s->s_port);
} else {
if (s == NULL) {
return EAI_NONAME;
}
port = ntohs(s->s_port);
}
valid_port: