summaryrefslogtreecommitdiff
path: root/app/openvpn/src/openvpn/base64.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/openvpn/src/openvpn/base64.c')
-rw-r--r--app/openvpn/src/openvpn/base64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/openvpn/src/openvpn/base64.c b/app/openvpn/src/openvpn/base64.c
index 6dc8479f..258b258e 100644
--- a/app/openvpn/src/openvpn/base64.c
+++ b/app/openvpn/src/openvpn/base64.c
@@ -108,7 +108,7 @@ token_decode(const char *token)
int i;
unsigned int val = 0;
int marker = 0;
- if (strlen(token) < 4)
+ if (!token[0] || !token[1] || !token[2] || !token[3])
return DECODE_ERROR;
for (i = 0; i < 4; i++) {
val *= 64;