mirror of
https://github.com/samba-team/samba.git
synced 2025-03-04 16:58:42 +03:00
nwrap: fix return code for getaddrinfo in case service is not valid
If the specified service is not a valid service name (or port number), EAI_NONAME should be returned. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
40f9bf7835
commit
5bea2dc13f
@ -5108,7 +5108,7 @@ static int nwrap_getaddrinfo(const char *node,
|
|||||||
if (p != NULL) {
|
if (p != NULL) {
|
||||||
freeaddrinfo(p);
|
freeaddrinfo(p);
|
||||||
}
|
}
|
||||||
return EAI_SERVICE;
|
return EAI_NONAME;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user