1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-13 10:02:38 +00:00

Handle SECDNS being rejected when PRIDNS is not

Submitted by:	OGAWA Takaya <t-ogawa@triaez.kaisei.org>
PR:		24518
This commit is contained in:
Brian Somers 2001-01-22 01:43:46 +00:00
parent c80a5c4c6e
commit 7d39b1e3be
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=71356

View File

@ -871,10 +871,13 @@ IpcpSendConfigReq(struct fsm *fp)
}
if (IsEnabled(ipcp->cfg.ns.dns_neg) &&
!REJECTED(ipcp, TY_PRIMARY_DNS - TY_ADJUST_NS) &&
!REJECTED(ipcp, TY_SECONDARY_DNS - TY_ADJUST_NS)) {
!REJECTED(ipcp, TY_PRIMARY_DNS - TY_ADJUST_NS)) {
memcpy(o->data, &ipcp->dns[0].s_addr, 4);
INC_LCP_OPT(TY_PRIMARY_DNS, 6, o);
}
if (IsEnabled(ipcp->cfg.ns.dns_neg) &&
!REJECTED(ipcp, TY_SECONDARY_DNS - TY_ADJUST_NS)) {
memcpy(o->data, &ipcp->dns[1].s_addr, 4);
INC_LCP_OPT(TY_SECONDARY_DNS, 6, o);
}