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:
parent
559ed74a5a
commit
be182bab2e
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user