projects
/
privoxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rebuild config file
[privoxy.git]
/
ssl.c
diff --git
a/ssl.c
b/ssl.c
index
30b6f58
..
1eb6e82
100644
(file)
--- a/
ssl.c
+++ b/
ssl.c
@@
-1726,6
+1726,12
@@
static int ssl_verify_callback(void *csp_void, mbedtls_x509_crt *crt,
mbedtls_x509_crt_info(buf, sizeof(buf), CERT_INFO_PREFIX, crt);
encoded_text = html_encode(buf);
mbedtls_x509_crt_info(buf, sizeof(buf), CERT_INFO_PREFIX, crt);
encoded_text = html_encode(buf);
+ if (encoded_text == NULL)
+ {
+ log_error(LOG_LEVEL_ERROR,
+ "Failed to HTML-encode the certificate information");
+ return -1;
+ }
strlcpy(last->info_buf, encoded_text, sizeof(last->info_buf));
freez(encoded_text);
}
strlcpy(last->info_buf, encoded_text, sizeof(last->info_buf));
freez(encoded_text);
}