[network-manager-vpnc] core: ignore unhandled vpnc messages (bgo #703277)
- From: Dan Williams <dcbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-vpnc] core: ignore unhandled vpnc messages (bgo #703277)
- Date: Tue, 14 Oct 2014 19:11:22 +0000 (UTC)
commit 8a5bacf41b7da734be3b611e3b039edac58f2738
Author: Dan Williams <dcbw redhat com>
Date: Tue Oct 14 14:09:36 2014 -0500
core: ignore unhandled vpnc messages (bgo #703277)
b5e4e1a85a started parsing vpnc output, but parsed all vpnc
output including error messages. Ignore stuff we don't
understand to prevent failing the VPN incorrectly.
src/nm-vpnc-service.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/nm-vpnc-service.c b/src/nm-vpnc-service.c
index 7e2dc86..57fa268 100644
--- a/src/nm-vpnc-service.c
+++ b/src/nm-vpnc-service.c
@@ -464,11 +464,9 @@ vpnc_prompt (const char *data, gsize dlen, gpointer user_data)
}
if (!hints[0]) {
- g_warning ("Unhandled vpnc request '%s'", prompt);
+ if (debug)
+ g_message ("Unhandled vpnc message '%s'", prompt);
g_free (prompt);
-
- nm_vpn_plugin_failure (NM_VPN_PLUGIN (plugin), NM_VPN_PLUGIN_FAILURE_LOGIN_FAILED);
- nm_vpn_plugin_set_state (NM_VPN_PLUGIN (plugin), NM_VPN_SERVICE_STATE_STOPPED);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]