PPP, don't store the name by which the peer authenticated itself to us if multilink support is disabled

pcb->peer_authname is only used by multilink support (which we don't
support), don't store the useless peer authname.
This commit is contained in:
Sylvain Rochet
2015-05-01 22:51:09 +02:00
parent 967a8d0678
commit 78e1b9b7c1
2 changed files with 8 additions and 3 deletions

View File

@@ -359,9 +359,9 @@ struct ppp_pcb_s {
#if PPP_AUTH_SUPPORT
/* auth data */
#if PPP_SERVER
#if PPP_SERVER && defined(HAVE_MULTILINK)
char peer_authname[MAXNAMELEN + 1]; /* The name by which the peer authenticated itself to us. */
#endif /* PPP_SERVER */
#endif /* PPP_SERVER && defined(HAVE_MULTILINK) */
u16_t auth_pending; /* Records which authentication operations haven't completed yet. */
u16_t auth_done; /* Records which authentication operations have been completed. */