(krb5_get_forwarded_creds): if no_addresses is set, do not add any
local addresses to KRB_CRED git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10208 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -214,12 +214,20 @@ krb5_get_forwarded_creds (krb5_context context,
|
|||||||
*enc_krb_cred_part.usec = usec;
|
*enc_krb_cred_part.usec = usec;
|
||||||
|
|
||||||
if (auth_context->local_address && auth_context->local_port) {
|
if (auth_context->local_address && auth_context->local_port) {
|
||||||
ret = krb5_make_addrport (context,
|
krb5_boolean noaddr;
|
||||||
&enc_krb_cred_part.s_address,
|
const krb5_realm *realm;
|
||||||
auth_context->local_address,
|
|
||||||
auth_context->local_port);
|
realm = krb5_princ_realm(context, out_creds->server);
|
||||||
if (ret)
|
krb5_appdefault_boolean(context, NULL, *realm, "no-addresses", FALSE,
|
||||||
goto out4;
|
&noaddr);
|
||||||
|
if (!noaddr) {
|
||||||
|
ret = krb5_make_addrport (context,
|
||||||
|
&enc_krb_cred_part.s_address,
|
||||||
|
auth_context->local_address,
|
||||||
|
auth_context->local_port);
|
||||||
|
if (ret)
|
||||||
|
goto out4;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (auth_context->remote_address) {
|
if (auth_context->remote_address) {
|
||||||
|
Reference in New Issue
Block a user