Skip to content

Commit

Permalink
Name sha1 variable correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelortmann committed May 10, 2020
1 parent 9f14f3d commit fd1dff3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,21 +275,21 @@ char *ssl_fpconv(char *in, char *out)
{
long len;
char *fp;
unsigned char *md5;
unsigned char *sha1;

if (!in)
return NULL;

if ((md5 = OPENSSL_hexstr2buf(in, &len))) {
fp = OPENSSL_buf2hexstr(md5, len);
if ((sha1 = OPENSSL_hexstr2buf(in, &len))) {
fp = OPENSSL_buf2hexstr(sha1, len);
if (fp) {
out = user_realloc(out, strlen(fp) + 1);
strcpy(out, fp);
OPENSSL_free(md5);
OPENSSL_free(sha1);
OPENSSL_free(fp);
return out;
}
OPENSSL_free(md5);
OPENSSL_free(sha1);
}
return NULL;
}
Expand Down

0 comments on commit fd1dff3

Please sign in to comment.