summaryrefslogtreecommitdiff
path: root/cups/tls-darwin.c
diff options
context:
space:
mode:
authorMichael R Sweet <michaelrsweet@gmail.com>2018-01-10 23:52:05 -0500
committerMichael R Sweet <michaelrsweet@gmail.com>2018-01-10 23:52:05 -0500
commit378eeedf0f2e25e995b3eb004b4ac0d88dcd97ef (patch)
treeeff78ffbe76d52846e208568256cb0f48fa917d1 /cups/tls-darwin.c
parenta20d0ea0033d3d10967ee417ee683aa3323b5cd3 (diff)
downloadcups-378eeedf0f2e25e995b3eb004b4ac0d88dcd97ef.tar.gz
Update HTTP implementation to support field values larger than HTTP_MAX_VALUE
bytes (Issue #5216) cups/http-private.h: - Move all char * shadow variables to new fields array, rename old fields array to _fields (binary compatibility). cups/http.c: - Add new http_add_field that can handle appending values and allocating or clearing strings as needed. - Update httpSetField to use http_add_field. - Update _httpUpdate to use http_add_field instead of httpSetField. cups/request.c: - Fix checks for header fields. cups/tls-*.c: - Fix checks for Host header field.
Diffstat (limited to 'cups/tls-darwin.c')
-rw-r--r--cups/tls-darwin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cups/tls-darwin.c b/cups/tls-darwin.c
index 9fb3b1611..9a9e0eb5f 100644
--- a/cups/tls-darwin.c
+++ b/cups/tls-darwin.c
@@ -1,7 +1,7 @@
/*
* TLS support code for CUPS on macOS.
*
- * Copyright 2007-2017 by Apple Inc.
+ * Copyright 2007-2018 by Apple Inc.
* Copyright 1997-2007 by Easy Software Products, all rights reserved.
*
* Licensed under Apache License v2.0. See the file "LICENSE" for more information.
@@ -1424,7 +1424,7 @@ _httpTLSStart(http_t *http) /* I - HTTP connection */
* Server: find/create a certificate for TLS...
*/
- if (http->fields[HTTP_FIELD_HOST][0])
+ if (http->fields[HTTP_FIELD_HOST])
{
/*
* Use hostname for TLS upgrade...