Skip to content

Commit

Permalink
openconnect_base64_decode: fix sign of error return value
Browse files Browse the repository at this point in the history
  • Loading branch information
dlenski committed Sep 8, 2018
1 parent 8977877 commit 49014cc
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 49014cc

Please sign in to comment.