Changeset 8da0c7e in mod_gnutls for src/gnutls_io.c
- Timestamp:
- Oct 11, 2020, 10:11:12 AM (5 months ago)
- Branches:
- asyncio
- Children:
- d8c4d75
- Parents:
- 6be4dd0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gnutls_io.c
r6be4dd0 r8da0c7e 103 103 const char *str; 104 104 apr_size_t str_len; 105 apr_size_t consume;106 105 107 106 /* Justin points out this is an http-ism that might … … 140 139 141 140 /* Assure we don't overflow. */ 142 consume = 143 (str_len + actual > 144 *len) ? *len - actual : str_len; 141 apr_size_t consume = 142 (str_len + actual > *len) ? *len - actual : str_len; 145 143 146 144 memcpy(c, str, consume); … … 177 175 apr_size_t wanted = *len; 178 176 apr_size_t bytes = 0; 179 int rc;180 177 181 178 *len = 0; … … 221 218 { 222 219 /* Note: The pull function sets ctxt->input_rc */ 223 rc = gnutls_record_recv(ctxt->session, buf + bytes, wanted - bytes); 220 int rc = gnutls_record_recv(ctxt->session, 221 buf + bytes, wanted - bytes); 224 222 225 223 if (rc > 0) { … … 311 309 char *buf, apr_size_t * len) { 312 310 const char *pos = NULL; 313 apr_status_t status;314 311 apr_size_t tmplen = *len, buflen = *len, offset = 0; 315 312 316 313 *len = 0; 317 314 318 while (tmplen > 0) { 319 status = gnutls_io_input_read(ctxt, buf + offset, &tmplen); 315 while (tmplen > 0) 316 { 317 apr_status_t status = 318 gnutls_io_input_read(ctxt, buf + offset, &tmplen); 320 319 321 320 if (status != APR_SUCCESS) { … … 959 958 { 960 959 mgs_handle_t *ctxt = ptr; 961 apr_status_t rc;962 960 apr_size_t in = len; 963 961 apr_read_type_e block = ctxt->input_block; … … 980 978 if (APR_BRIGADE_EMPTY(ctxt->input_bb)) 981 979 { 982 rc = ap_get_brigade(ctxt->input_filter->next,983 ctxt->input_bb, AP_MODE_READBYTES,984 ctxt->input_block, in);980 apr_status_t rc = ap_get_brigade(ctxt->input_filter->next, 981 ctxt->input_bb, AP_MODE_READBYTES, 982 ctxt->input_block, in); 985 983 986 984 /* Not a problem, there was simply no data ready yet.
Note: See TracChangeset
for help on using the changeset viewer.