From e7ba97e2b531e79ad528c71bae7eb484e8f1a9e4 Mon Sep 17 00:00:00 2001 From: Alan Carvalho de Assis Date: Mon, 7 Sep 2015 13:34:01 -0600 Subject: [PATCH] Fix pap authentication, pap_username and pap_password were moved to struct settings --- netutils/pppd/pap.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/netutils/pppd/pap.c b/netutils/pppd/pap.c index 1e5363aa4..77e3f1a08 100644 --- a/netutils/pppd/pap.c +++ b/netutils/pppd/pap.c @@ -42,6 +42,7 @@ * Included Files ****************************************************************************/ +#include #include "ppp_conf.h" #include "ppp_arch.h" #include "ppp.h" @@ -156,16 +157,16 @@ void pap_task(struct ppp_context_s *ctx, u8_t *buffer) /* Write options */ - t = strlen((char*)ctx->pap_username); + t = strlen((char*)ctx->settings->pap_username); /* Write peer length */ *bptr++ = (u8_t)t; - bptr = memcpy(bptr, ctx->pap_username, t); + bptr = memcpy(bptr, ctx->settings->pap_username, t); - t = strlen((char*)ctx->pap_password); + t = strlen((char*)ctx->settings->pap_password); *bptr++ = (u8_t)t; - bptr = memcpy(bptr, ctx->pap_password, t); + bptr = memcpy(bptr, ctx->settings->pap_password, t); /* Write length */