Skip to content

Commit

Permalink
Merge branch 'fix_base64_decode' of gitlab.com:dlenski/openconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
dwmw2 committed Sep 21, 2018
2 parents 5da09b1 + 49014cc commit a33a274
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions http-auth.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit a33a274

Please sign in to comment.