Skip to content

Commit c024d5d

Browse files
committed
feat: add HEIC, HEIF and related mime types
See https://en.wikipedia.org/wiki/High_Efficiency_Image_File_Format Submitted by: Alexandru Mărășteanu <hello alexei.ro> Github: closes #580 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1930199 13f79535-47bb-0310-9956-ffa450edef68
1 parent 9d26b95 commit c024d5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/ssl/ssl_ct_sct.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ apr_status_t sct_parse(const char *source,
142142
ap_assert(rv == APR_SUCCESS);
143143

144144
if (fields->extlen != 0) {
145-
if (fields->extlen < len) {
145+
if (len < fields->extlen) {
146146
ap_log_error(APLOG_MARK, APLOG_ERR, 0, s,
147147
APLOGNO(02770) "SCT size %" APR_SIZE_T_FMT " has no "
148148
"space for %hu bytes of extensions",
@@ -176,7 +176,7 @@ apr_status_t sct_parse(const char *source,
176176
rv = ctutil_deserialize_uint16(&cur, &len, &fields->siglen);
177177
ap_assert(rv == APR_SUCCESS);
178178

179-
if (fields->siglen < len) {
179+
if (len < fields->siglen) {
180180
ap_log_error(APLOG_MARK, APLOG_ERR, 0, s,
181181
APLOGNO(02772) "SCT has no space for signature");
182182
return APR_EINVAL;

0 commit comments

Comments
 (0)