Commit 49014ccb authored by Daniel Lenski's avatar Daniel Lenski

openconnect_base64_decode: fix sign of error return value

parent 89778776
...@@ -68,7 +68,7 @@ void *openconnect_base64_decode(int *ret_len, const char *in) ...@@ -68,7 +68,7 @@ void *openconnect_base64_decode(int *ret_len, const char *in)
while (*in) { while (*in) {
if (!in[1] || !in[2] || !in[3]) if (!in[1] || !in[2] || !in[3])
goto err; goto err;
b[0] = b64_char(in[0]); b[0] = b64_char(in[0]);
b[1] = b64_char(in[1]); b[1] = b64_char(in[1]);
if (b[0] < 0 || b[1] < 0) if (b[0] < 0 || b[1] < 0)
goto err; goto err;
...@@ -99,7 +99,7 @@ void *openconnect_base64_decode(int *ret_len, const char *in) ...@@ -99,7 +99,7 @@ void *openconnect_base64_decode(int *ret_len, const char *in)
err: err:
free(buf); free(buf);
*ret_len = EINVAL; *ret_len = -EINVAL;
return NULL; 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