Skip to content

Commit

Permalink
Merge branch 'master' into s1
Browse files Browse the repository at this point in the history
  • Loading branch information
akashrawal committed Jun 25, 2017
2 parents ae31b12 + f4fa134 commit e820888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libwget/ssl_gnutls.c
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ static int _cert_verify_hpkp(gnutls_x509_crt_t cert, const char *hostname)

data = xmalloc(size);

if ((rc = gnutls_pubkey_export(key, GNUTLS_X509_FMT_DER, NULL, &size)) != GNUTLS_E_SHORT_MEMORY_BUFFER) {
if ((rc = gnutls_pubkey_export(key, GNUTLS_X509_FMT_DER, data, &size)) == GNUTLS_E_SHORT_MEMORY_BUFFER) {
error_printf(_("Failed to export pubkey: %s\n"), gnutls_strerror(rc));
ret = 0;
goto out;
Expand Down

0 comments on commit e820888

Please sign in to comment.