[PATCH 2/2] ppp: send PPP_FAIL when authentication fails
Kristen Carlson Accardi
kristen at linux.intel.com
Fri Mar 26 21:36:50 PDT 2010
---
gatchat/ppp_auth.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/gatchat/ppp_auth.c b/gatchat/ppp_auth.c
index 95b2f96..fe3c501 100644
--- a/gatchat/ppp_auth.c
+++ b/gatchat/ppp_auth.c
@@ -128,7 +128,8 @@ static void chap_process_failure(struct auth_data *data, guint8 *packet)
{
struct chap_header *header = (struct chap_header *) packet;
- g_print("Failed to authenticate, message %s\n", header->data);
+ ppp_generate_event(data->ppp, PPP_FAIL);
+ g_printerr("Failed to authenticate, message %s\n", header->data);
}
/*
--
1.6.6.1
More information about the ofono
mailing list