- Timestamp:
- Dec 12, 2004, 4:28:26 PM (18 years ago)
- Branches:
- asyncio, debian/master, debian/stretch-backports, jessie-backports, main, master, msva, proxy-ticket, upstream
- Children:
- 05d56ce
- Parents:
- a66e147
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gnutls_cache.c
ra66e147 r95ca7c0 60 60 while (split) { 61 61 apr_memcache_server_t* st; 62 char* split2;63 62 char* host_str; 64 char* port_str; 65 int port; 66 67 host_str = apr_strtok(split,":", &split2); 68 port_str = apr_strtok(NULL,":", &split2); 69 if (!port_str) { 63 char* scope_id; 64 apr_port_t port; 65 66 rv = apr_parse_addr_port(&host_str, &scope_id, &port, split, p); 67 if(rv != APR_SUCCESS) { 68 ap_log_error(APLOG_MARK, APLOG_CRIT, rv, s, 69 "[gnutls_cache] Failed to Parse Server: '%s'", split); 70 return rv; 71 } 72 73 if(host_str == NULL) { 74 ap_log_error(APLOG_MARK, APLOG_CRIT, rv, s, 75 "[gnutls_cache] Failed to Parse Server, " 76 "no hostname specified: '%s'", split); 77 return rv; 78 } 79 80 if (port == 0) { 70 81 port = 11211; /* default port */ 71 }72 else {73 port = atoi(port_str);74 82 } 75 83
Note: See TracChangeset
for help on using the changeset viewer.