mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-03-13 16:18:55 +00:00
PPP, SERVER: fix build if PAP_SUPPORT is not enabled
If PAP_SUPPORT is not enabled, we can't consider a failed PAP auth as a null auth.
This commit is contained in:
parent
f21aede031
commit
b97c4d96e2
@ -728,7 +728,9 @@ void link_established(ppp_pcb *pcb) {
|
|||||||
#if PPP_AUTH_SUPPORT
|
#if PPP_AUTH_SUPPORT
|
||||||
int auth;
|
int auth;
|
||||||
#if PPP_SERVER
|
#if PPP_SERVER
|
||||||
|
#if PAP_SUPPORT
|
||||||
lcp_options *wo = &pcb->lcp_wantoptions;
|
lcp_options *wo = &pcb->lcp_wantoptions;
|
||||||
|
#endif /* PAP_SUPPORT */
|
||||||
lcp_options *go = &pcb->lcp_gotoptions;
|
lcp_options *go = &pcb->lcp_gotoptions;
|
||||||
#endif /* PPP_SERVER */
|
#endif /* PPP_SERVER */
|
||||||
lcp_options *ho = &pcb->lcp_hisoptions;
|
lcp_options *ho = &pcb->lcp_hisoptions;
|
||||||
@ -777,7 +779,11 @@ void link_established(ppp_pcb *pcb) {
|
|||||||
set_allowed_addrs(unit, NULL, NULL);
|
set_allowed_addrs(unit, NULL, NULL);
|
||||||
} else
|
} else
|
||||||
#endif /* PPP_ALLOWED_ADDRS */
|
#endif /* PPP_ALLOWED_ADDRS */
|
||||||
if (!wo->neg_upap || !pcb->settings.null_login) {
|
if (!pcb->settings.null_login
|
||||||
|
#if PAP_SUPPORT
|
||||||
|
|| !wo->neg_upap
|
||||||
|
#endif /* PAP_SUPPORT */
|
||||||
|
) {
|
||||||
ppp_warn("peer refused to authenticate: terminating link");
|
ppp_warn("peer refused to authenticate: terminating link");
|
||||||
#if 0 /* UNUSED */
|
#if 0 /* UNUSED */
|
||||||
status = EXIT_PEER_AUTH_FAILED;
|
status = EXIT_PEER_AUTH_FAILED;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user