summaryrefslogtreecommitdiffstats
path: root/source/nsswitch/winbind_krb5_locator.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-10-15 16:11:48 -0700
committerJeremy Allison <jra@samba.org>2007-10-15 16:11:48 -0700
commit4a56b697b6adcf095e25895c4a9ba3192ed34124 (patch)
treef9d111fa2a20005b99eb90597c92230719e4d004 /source/nsswitch/winbind_krb5_locator.c
parent406737cd9a34ac498e5823b380e1768d41e16c1b (diff)
downloadsamba-4a56b697b6adcf095e25895c4a9ba3192ed34124.tar.gz
samba-4a56b697b6adcf095e25895c4a9ba3192ed34124.tar.xz
samba-4a56b697b6adcf095e25895c4a9ba3192ed34124.zip
Move to protocol independent code in most of lib/util_sock.c
We don't use gethostbyname any more except in one case where we're looking for host aliases (I don't know how to do that with getaddrinfo yet). New function should be getaddrinfo(). Next step will be fixing lib/access.c, and then changing libsmb/namequery.c to cope with IPv6 address returns. Jeremy.
Diffstat (limited to 'source/nsswitch/winbind_krb5_locator.c')
-rw-r--r--source/nsswitch/winbind_krb5_locator.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/nsswitch/winbind_krb5_locator.c b/source/nsswitch/winbind_krb5_locator.c
index 18a9fe3429f..dc2664b67c2 100644
--- a/source/nsswitch/winbind_krb5_locator.c
+++ b/source/nsswitch/winbind_krb5_locator.c
@@ -171,7 +171,7 @@ static krb5_error_code smb_krb5_locator_call_cbfunc(const char *name,
int (*cbfunc)(void *, int, struct sockaddr *),
void *cbdata)
{
- struct addrinfo *out;
+ struct addrinfo *out = NULL;
int ret;
int count = 3;
@@ -206,7 +206,6 @@ static krb5_error_code smb_krb5_locator_call_cbfunc(const char *name,
#endif
freeaddrinfo(out);
-
return ret;
}