mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
tsocket: set errno on some failures of tsocket_address_inet_from_strings
Fix setting errno on all failure modes of tsocket_address_inet_from_strings. Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Mon Sep 13 22:27:59 UTC 2021 on sn-devel-184
This commit is contained in:
parent
7217c67a4a
commit
95d8cdf0c3
@ -411,6 +411,8 @@ int _tsocket_address_inet_from_strings(TALLOC_CTX *mem_ctx,
|
||||
if (ret != 0) {
|
||||
switch (ret) {
|
||||
case EAI_FAIL:
|
||||
case EAI_NONAME:
|
||||
case EAI_ADDRFAMILY:
|
||||
errno = EINVAL;
|
||||
break;
|
||||
}
|
||||
|
@ -1 +0,0 @@
|
||||
^samba.unittests.tsocket_bsd_addr
|
Loading…
x
Reference in New Issue
Block a user