pptp: Return authentication errors properly
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Tue, 15 Nov 2011 11:06:25 +0000 (13:06 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 15 Nov 2011 12:41:45 +0000 (13:41 +0100)
plugins/pptp.c

index 6b2838c..814be99 100644 (file)
@@ -120,6 +120,9 @@ static int pptp_notify(DBusMessage *msg, struct connman_provider *provider)
                return VPN_STATE_FAILURE;
        }
 
+       if (strcmp(reason, "auth failed") == 0)
+               return VPN_STATE_AUTH_FAILURE;
+
        if (strcmp(reason, "connect"))
                return VPN_STATE_DISCONNECT;