summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2014-02-16 18:03:45 +0100
committerArne Schwabe <arne@rfc2549.org>2014-02-16 18:03:45 +0100
commit6a1c312e5d9c3d04c5719ff6b90d0adb5587a332 (patch)
tree0c821570a0b3fcc1e5ad60f4fcabe4b8d7790532
parent7b0b321f61849816bb4e3cd24c15a4d87ffdff39 (diff)
For some strange reason the dev argument is sometimes empty leading to crashes.v0.6.9
-rw-r--r--main/src/main/java/de/blinkt/openvpn/core/OpenVpnManagementThread.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/core/OpenVpnManagementThread.java b/main/src/main/java/de/blinkt/openvpn/core/OpenVpnManagementThread.java
index 0da067ab..08d28ca1 100644
--- a/main/src/main/java/de/blinkt/openvpn/core/OpenVpnManagementThread.java
+++ b/main/src/main/java/de/blinkt/openvpn/core/OpenVpnManagementThread.java
@@ -386,7 +386,7 @@ public class OpenVpnManagementThread implements Runnable, OpenVPNManagement {
if(routeparts.length==5) {
assert(routeparts[3].equals("dev"));
mOpenVPNService.addRoute(routeparts[0], routeparts[1], routeparts[2], routeparts[4]);
- } else if (routeparts.length == 3) {
+ } else if (routeparts.length >= 3) {
mOpenVPNService.addRoute(routeparts[0], routeparts[1], routeparts[2], null);
} else {
VpnStatus.logError("Unrecognized ROUTE cmd:" + Arrays.toString(routeparts) + " | " + argument);