if the remote address isn't an addrport, don't try comparing to one;
this should make old clients work with new servers git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11073 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -137,10 +137,10 @@ krb5_rd_cred(krb5_context context,
|
|||||||
|
|
||||||
if (enc_krb_cred_part.r_address
|
if (enc_krb_cred_part.r_address
|
||||||
&& auth_context->local_address) {
|
&& auth_context->local_address) {
|
||||||
if (auth_context->local_port) {
|
if(auth_context->local_port &&
|
||||||
|
enc_krb_cred_part.r_address->addr_type == KRB5_ADDRESS_ADDRPORT) {
|
||||||
krb5_address *a;
|
krb5_address *a;
|
||||||
int cmp;
|
int cmp;
|
||||||
|
|
||||||
ret = krb5_make_addrport (context, &a,
|
ret = krb5_make_addrport (context, &a,
|
||||||
auth_context->local_address,
|
auth_context->local_address,
|
||||||
auth_context->local_port);
|
auth_context->local_port);
|
||||||
|
Reference in New Issue
Block a user