(do_version4): look at check_ticket_addresses and emulate that by

setting krb_ignore_ip_address (not a great interface but it doesn't
seem like the time to go around fixing libkrb stuff now)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7843 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2000-02-02 01:26:41 +00:00
parent 6175795a3d
commit c976466fbf

View File

@@ -328,6 +328,9 @@ do_version4(unsigned char *buf,
memcpy(&auth.dat, buf, pos);
auth.length = pos;
krb_set_key(tkey->key.keyvalue.data, 0);
krb_ignore_ip_address = !check_ticket_addresses;
ret = krb_rd_req(&auth, "krbtgt", realm,
addr->sin_addr.s_addr, &ad, 0);
if(ret){