Commit a33a2741 authored by David Woodhouse's avatar David Woodhouse

Merge branch 'fix_base64_decode' of gitlab.com:dlenski/openconnect

parents 5da09b13 49014ccb
......@@ -68,7 +68,7 @@ void *openconnect_base64_decode(int *ret_len, const char *in)
while (*in) {
if (!in[1] || !in[2] || !in[3])
goto err;
b[0] = b64_char(in[0]);
b[0] = b64_char(in[0]);
b[1] = b64_char(in[1]);
if (b[0] < 0 || b[1] < 0)
goto err;
......@@ -99,7 +99,7 @@ void *openconnect_base64_decode(int *ret_len, const char *in)
err:
free(buf);
*ret_len = EINVAL;
*ret_len = -EINVAL;
return NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment