summaryrefslogtreecommitdiff
path: root/source4/kdc
diff options
context:
space:
mode:
authorAndreas Schneider <asn@redhat.com>2009-12-16 15:52:30 +0100
committerStefan Metzmacher <metze@samba.org>2009-12-16 20:28:38 +0100
commit226a9db2d9e0e15c14fb286761bff68253028a0c (patch)
treec3450e989b356428e3add85150a9179f8e34d2c7 /source4/kdc
parent743e6363d54cf45a14de517e297faaa8258caaec (diff)
downloadsamba-226a9db2d9e0e15c14fb286761bff68253028a0c.tar.gz
samba-226a9db2d9e0e15c14fb286761bff68253028a0c.tar.bz2
samba-226a9db2d9e0e15c14fb286761bff68253028a0c.zip
s4-gensec: Replace gensec_set_my_addr() with new tsocket based fn.
Diffstat (limited to 'source4/kdc')
-rw-r--r--source4/kdc/kpasswdd.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/source4/kdc/kpasswdd.c b/source4/kdc/kpasswdd.c
index 18adf0a248..586dd1304b 100644
--- a/source4/kdc/kpasswdd.c
+++ b/source4/kdc/kpasswdd.c
@@ -436,9 +436,6 @@ bool kpasswdd_process(struct kdc_server *kdc,
DATA_BLOB kpasswd_req, kpasswd_rep;
struct cli_credentials *server_credentials;
struct gensec_security *gensec_security;
- struct sockaddr_storage ss;
- ssize_t socklen;
- struct socket_address *socket_address;
TALLOC_CTX *tmp_ctx = talloc_new(mem_ctx);
char *keytab_name;
@@ -534,20 +531,7 @@ bool kpasswdd_process(struct kdc_server *kdc,
}
#endif
- socklen = tsocket_address_bsd_sockaddr(my_addr, (struct sockaddr *) &ss,
- sizeof(struct sockaddr_storage));
- if (socklen < 0) {
- talloc_free(tmp_ctx);
- return false;
- }
- socket_address = socket_address_from_sockaddr(tmp_ctx,
- (struct sockaddr *) &ss, socklen);
- if (socket_address == NULL) {
- talloc_free(tmp_ctx);
- return false;
- }
-
- nt_status = gensec_set_my_addr(gensec_security, socket_address);
+ nt_status = gensec_set_local_address(gensec_security, my_addr);
if (!NT_STATUS_IS_OK(nt_status)) {
talloc_free(tmp_ctx);
return false;