git.samba.org
/
kai
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40f9bf7
)
nwrap: fix return code for getaddrinfo in case service is not valid
author
Michael Adam
<obnox@samba.org>
Fri, 6 Nov 2015 10:00:54 +0000
(11:00 +0100)
committer
Michael Adam
<obnox@samba.org>
Mon, 11 Jan 2016 11:25:28 +0000
(12:25 +0100)
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>
lib/nss_wrapper/nss_wrapper.c
patch
|
blob
|
history
diff --git
a/lib/nss_wrapper/nss_wrapper.c
b/lib/nss_wrapper/nss_wrapper.c
index 9404d173d726d7d1da47c30402efba6f5ed551dc..986b974429acf58045a205f5ec7d7142dcbc5a15 100644
(file)
--- a/
lib/nss_wrapper/nss_wrapper.c
+++ b/
lib/nss_wrapper/nss_wrapper.c
@@
-5108,7
+5108,7
@@
static int nwrap_getaddrinfo(const char *node,
if (p != NULL) {
freeaddrinfo(p);
}
- return EAI_
SERVIC
E;
+ return EAI_
NONAM
E;
}
}