git.samba.org
/
sharpe
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ef0c9a
)
nss_wins: ip_pton expects the raw IP address
author
Tom Mortensen
<tomm@lime-technology.com>
Sat, 16 Apr 2016 08:57:12 +0000
(10:57 +0200)
committer
Volker Lendecke
<vl@samba.org>
Fri, 22 Apr 2016 05:20:17 +0000
(07:20 +0200)
Signed-off-by: Tom Mortensen <tomm@lime-technology.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
nsswitch/wins.c
patch
|
blob
|
history
diff --git
a/nsswitch/wins.c
b/nsswitch/wins.c
index 3243ffb5bff17b43021d08f12d62adcfb5dd4e2b..22524e4646137634b1f2646ec13acef887ccba2f 100644
(file)
--- a/
nsswitch/wins.c
+++ b/
nsswitch/wins.c
@@
-47,7
+47,7
@@
NSS_STATUS _nss_wins_gethostbyname2_r(const char *name, int af, struct hostent *
static char *lookup_byname_backend(const char *name)
{
const char *p;
- char *ip;
+ char *ip
, *ipp
;
size_t nbt_len;
wbcErr result;
@@
-65,6
+65,11
@@
static char *lookup_byname_backend(const char *name)
return NULL;
}
+ ipp = strchr(ip, '\t');
+ if (ipp != NULL) {
+ *ipp = '\0';
+ }
+
return ip;
}