Add a AP_DEBUG_ASSERT to quiet a clang false positive.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1180329 13f79535-47bb-0310-9956-
ffa450edef68
double expiry_total = 0;
int index_pct, cache_pct;
+ AP_DEBUG_ASSERT(header->subcache_num > 0);
ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "inside shmcb_status");
/* Perform the iteration inside the mutex to avoid corruption or invalid
* pointer arithmetic. The rest of our logic uses read-only header data so
sc->session_cache_timeout = SSL_SESSION_CACHE_TIMEOUT;
}
- if (sc->server->pphrase_dialog_type == SSL_PPTYPE_UNSET) {
+ if (sc->server && sc->server->pphrase_dialog_type == SSL_PPTYPE_UNSET) {
sc->server->pphrase_dialog_type = SSL_PPTYPE_BUILTIN;
}