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];
|
guint8 buffer[BUFFERSZ];
|
||||||
int index;
|
int index;
|
||||||
gint mru;
|
gint mru;
|
||||||
guint16 auth_proto;
|
|
||||||
char user_name[256];
|
char user_name[256];
|
||||||
char passwd[256];
|
char passwd[256];
|
||||||
gboolean pfc;
|
gboolean pfc;
|
||||||
|
@ -447,7 +446,7 @@ static void ppp_transition_phase(GAtPPP *ppp, enum ppp_phase phase)
|
||||||
break;
|
break;
|
||||||
case PPP_AUTHENTICATION:
|
case PPP_AUTHENTICATION:
|
||||||
/* we don't do authentication right now, so send NONE */
|
/* 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);
|
ppp_generate_event(ppp, PPP_NONE);
|
||||||
/* otherwise we need to wait for the peer to send us a challenge */
|
/* otherwise we need to wait for the peer to send us a challenge */
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue