summaryrefslogtreecommitdiff
path: root/source4/kdc
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-09-07 15:35:18 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:05:28 -0500
commit959915a8cbea0c598ef1f29ce666329a521ef2f6 (patch)
tree68e1b2b483f60be3839dc476ab0ca0fb4dd0ec0b /source4/kdc
parentcd962355abad90a2161765a7be7d26e63572cab7 (diff)
downloadsamba-959915a8cbea0c598ef1f29ce666329a521ef2f6.tar.gz
samba-959915a8cbea0c598ef1f29ce666329a521ef2f6.tar.bz2
samba-959915a8cbea0c598ef1f29ce666329a521ef2f6.zip
r25001: Fix more C++ and other warnings, fix some of the indentation with ts=4 lines that I accidently added earlier.
(This used to be commit 0bcb21ed740fcec0f48ad36bbc2deee2948e8fc7)
Diffstat (limited to 'source4/kdc')
-rw-r--r--source4/kdc/kdc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/kdc/kdc.c b/source4/kdc/kdc.c
index c58f738243..f26e5a7e9b 100644
--- a/source4/kdc/kdc.c
+++ b/source4/kdc/kdc.c
@@ -407,15 +407,14 @@ static const struct stream_server_ops kpasswdd_tcp_stream_ops = {
/*
start listening on the given address
*/
-static NTSTATUS kdc_add_socket(struct kdc_server *kdc, const char *address)
+static NTSTATUS kdc_add_socket(struct kdc_server *kdc, const char *address,
+ uint16_t kdc_port, uint16_t kpasswd_port)
{
const struct model_ops *model_ops;
struct kdc_socket *kdc_socket;
struct kdc_socket *kpasswd_socket;
struct socket_address *kdc_address, *kpasswd_address;
NTSTATUS status;
- uint16_t kdc_port = lp_krb5_port();
- uint16_t kpasswd_port = lp_kpasswd_port();
kdc_socket = talloc(kdc, struct kdc_socket);
NT_STATUS_HAVE_NO_MEMORY(kdc_socket);
@@ -526,7 +525,8 @@ static NTSTATUS kdc_startup_interfaces(struct kdc_server *kdc)
for (i=0; i<num_interfaces; i++) {
const char *address = talloc_strdup(tmp_ctx, iface_n_ip(i));
- status = kdc_add_socket(kdc, address);
+ status = kdc_add_socket(kdc, address, lp_krb5_port(),
+ lp_kpasswd_port());
NT_STATUS_NOT_OK_RETURN(status);
}