summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-07-02 22:54:50 +0200
committerArne Schwabe <arne@rfc2549.org>2012-07-02 22:54:50 +0200
commitbf7aece58cd44b02616d30497d9d022f026edb07 (patch)
treea68b061733073cea5be46b70d278011555c0889d /src
parent106b2ec64486b32008471a6c81e1f43111e4cf49 (diff)
The "things that look similar are actually different" commit
fix last commit (mName != mUsername) MAIN != VIEW
Diffstat (limited to 'src')
-rw-r--r--src/de/blinkt/openvpn/ConfigConverter.java4
-rw-r--r--src/de/blinkt/openvpn/ConfigParser.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/de/blinkt/openvpn/ConfigConverter.java b/src/de/blinkt/openvpn/ConfigConverter.java
index 71a17fa..9b97cf1 100644
--- a/src/de/blinkt/openvpn/ConfigConverter.java
+++ b/src/de/blinkt/openvpn/ConfigConverter.java
@@ -159,8 +159,8 @@ public class ConfigConverter extends ListActivity {
mResult.mClientKeyFilename = VpnProfile.INLINE_TAG + embedFile(mResult.mClientKeyFilename);
mResult.mTLSAuthFilename = VpnProfile.INLINE_TAG + embedFile(mResult.mTLSAuthFilename);
- if(mResult.mUsername != null){
- String data =embedFile(mResult.mName);
+ if(mResult.mUsername != null && !mResult.mUsername.equals("")){
+ String data =embedFile(mResult.mUsername);
mResult.mName=null;
if(data!=null) {
String[] parts = data.split("\n");
diff --git a/src/de/blinkt/openvpn/ConfigParser.java b/src/de/blinkt/openvpn/ConfigParser.java
index b897f63..1b07178 100644
--- a/src/de/blinkt/openvpn/ConfigParser.java
+++ b/src/de/blinkt/openvpn/ConfigParser.java
@@ -436,7 +436,7 @@ public class ConfigParser {
np.mAuthenticationType=VpnProfile.TYPE_USERPASS_KEYSTORE;
}
if(authuser.size()>1) {
- np.mName=authuser.get(1);
+ np.mUsername=authuser.get(1);
}
}