summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-04-06 23:11:26 -0500
committerDenis Kenzior <denkenz@gmail.com>2010-04-06 23:11:26 -0500
commit1149210e160f7b8b43ea93dd4874477ad284bde4 (patch)
treee644bebf669d7346c5ae5627a1f43a48bd0e94e5
parent97ff3d56f4476e72945076bb84a357e7150ce4c9 (diff)
downloadofono-1149210e160f7b8b43ea93dd4874477ad284bde4.tar.bz2
ppp: Use auth->proto, not ppp->proto
Otherwise we move on to NCP stage prematurely
-rw-r--r--gatchat/gatppp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gatchat/gatppp.c b/gatchat/gatppp.c
index e9b80103..9fb6b7d4 100644
--- a/gatchat/gatppp.c
+++ b/gatchat/gatppp.c
@@ -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;