Open Source Telephony
 help / color / mirror / Atom feed
From: Kristen Carlson Accardi <kristen@linux.intel.com>
To: ofono@ofono.org
Subject: [PATCH 2/2] ppp: send PPP_FAIL when authentication fails
Date: Thu, 25 Mar 2010 13:04:36 -0700	[thread overview]
Message-ID: <1269547476-23161-3-git-send-email-kristen@linux.intel.com> (raw)
In-Reply-To: <1269547476-23161-1-git-send-email-kristen@linux.intel.com>

[-- Attachment #1: Type: text/plain, Size: 598 bytes --]

---
 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


  parent reply	other threads:[~2010-03-25 20:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-25 20:04 [PATCH 0/2] ppp authentication bug fixes Kristen Carlson Accardi
2010-03-25 20:04 ` [PATCH 1/2] ppp: allow empty secret for chap challenge Kristen Carlson Accardi
2010-03-25 20:04 ` Kristen Carlson Accardi [this message]
2010-03-26 17:20 ` [PATCH 0/2] ppp authentication bug fixes Marcel Holtmann
  -- strict thread matches above, loose matches on Subject: below --
2010-03-27  4:36 [PATCH 0/2] ppp authentication bug fixes (resend) Kristen Carlson Accardi
2010-03-27  4:36 ` [PATCH 2/2] ppp: send PPP_FAIL when authentication fails Kristen Carlson Accardi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1269547476-23161-3-git-send-email-kristen@linux.intel.com \
    --to=kristen@linux.intel.com \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox