diff options
author | Simo Sorce <idra@samba.org> | 2010-01-31 12:53:50 -0500 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2010-01-31 13:25:17 -0500 |
commit | 0520bd77822f494fe044ca8368c7964e560839d3 (patch) | |
tree | 6d9d25d102ec8a8c9fa97beeabd1a4b28240b9b6 /source4 | |
parent | 08a20006c84f8460c8f261f07e28fc345b0dfc1f (diff) | |
download | samba-0520bd77822f494fe044ca8368c7964e560839d3.tar.gz samba-0520bd77822f494fe044ca8368c7964e560839d3.tar.bz2 samba-0520bd77822f494fe044ca8368c7964e560839d3.zip |
s4:kdc Fix netbios name retrieval
The code was looping but always checking only the first address.
Diffstat (limited to 'source4')
-rw-r--r-- | source4/kdc/wdc-samba4.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/kdc/wdc-samba4.c b/source4/kdc/wdc-samba4.c index a58d0c2d66..6be0de718e 100644 --- a/source4/kdc/wdc-samba4.c +++ b/source4/kdc/wdc-samba4.c @@ -131,8 +131,8 @@ static krb5_error_code samba_wdc_check_client_access(void *priv, if (addresses) { for (i=0; i < addresses->len; i++) { - if (addresses->val->addr_type == KRB5_ADDRESS_NETBIOS) { - workstation = talloc_strndup(tmp_ctx, addresses->val->address.data, MIN(addresses->val->address.length, 15)); + if (addresses->val[i].addr_type == KRB5_ADDRESS_NETBIOS) { + workstation = talloc_strndup(tmp_ctx, addresses->val[i].address.data, MIN(addresses->val[i].address.length, 15)); if (workstation) { break; } |