mirror of git://git.sysmocom.de/ofono
ppp: Use auth->proto, not ppp->proto
Otherwise we move on to NCP stage prematurely
This commit is contained in:
parent
97ff3d56f4
commit
1149210e16
|
@ -66,7 +66,6 @@ struct _GAtPPP {
|
|||
guint8 buffer[BUFFERSZ];
|
||||
int index;
|
||||
gint mru;
|
||||
guint16 auth_proto;
|
||||
char user_name[256];
|
||||
char passwd[256];
|
||||
gboolean pfc;
|
||||
|
@ -447,7 +446,7 @@ static void ppp_transition_phase(GAtPPP *ppp, enum ppp_phase phase)
|
|||
break;
|
||||
case PPP_AUTHENTICATION:
|
||||
/* we don't do authentication right now, so send NONE */
|
||||
if (!ppp->auth_proto)
|
||||
if (ppp->auth->proto == 0)
|
||||
ppp_generate_event(ppp, PPP_NONE);
|
||||
/* otherwise we need to wait for the peer to send us a challenge */
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue