From ee294d35b853a19669c91cc6e2fa932256d1a6ae Mon Sep 17 00:00:00 2001 From: Kristen Carlson Accardi Date: Thu, 25 Mar 2010 13:04:36 -0700 Subject: [PATCH] ppp: send PPP_FAIL when authentication fails --- gatchat/ppp_auth.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } /* -- 2.7.4