[network-manager-openvpn] service: fix parsing 2FA challenge for "PASSWORD:Verification Failed"



commit 712e360eb8164731331dec4f4002d3612fa4dfce
Author: Adam Koczur <shockedbyvampire gmail com>
Date:   Fri Nov 3 13:33:20 2017 +0000

    service: fix parsing 2FA challenge for "PASSWORD:Verification Failed"
    
    [thaller redhat com: adjust whitespace and craft commit message]
    
    Fixes: 90db738220f69fcc01902759e97c9bb4ea8dd20a
    
    https://bugzilla.gnome.org/show_bug.cgi?id=751842

 src/nm-openvpn-service.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nm-openvpn-service.c b/src/nm-openvpn-service.c
index 923517f..6db0d26 100644
--- a/src/nm-openvpn-service.c
+++ b/src/nm-openvpn-service.c
@@ -861,7 +861,7 @@ handle_management_socket (NMOpenvpnPlugin *plugin,
                if (!strcmp (auth, "Auth")) {
                        gs_free char *failure_reason = NULL;
 
-                       failure_reason = get_detail (auth, ">PASSWORD:Verification Failed: 'Auth' ['");
+                       failure_reason = get_detail (str, ">PASSWORD:Verification Failed: 'Auth' ['");
                        if (parse_challenge (failure_reason, &priv->io_data->challenge_state_id, 
&priv->io_data->challenge_text)) {
                                _LOGD ("Received challenge '%s' for state '%s'",
                                       priv->io_data->challenge_state_id,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]