mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
Add another AP_DEBUG_ASSERT to document some assumptions in the code,
for the benefit of code analyzers. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1180330 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -125,6 +125,8 @@ BOOL ssl_util_path_check(ssl_pathcheck_t pcm, const char *path, apr_pool_t *p)
|
|||||||
if (pcm & SSL_PCM_EXISTS && apr_stat(&finfo, path,
|
if (pcm & SSL_PCM_EXISTS && apr_stat(&finfo, path,
|
||||||
APR_FINFO_TYPE|APR_FINFO_SIZE, p) != 0)
|
APR_FINFO_TYPE|APR_FINFO_SIZE, p) != 0)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
AP_DEBUG_ASSERT((pcm & SSL_PCM_EXISTS) ||
|
||||||
|
!(pcm & (SSL_PCM_ISREG|SSL_PCM_ISDIR|SSL_PCM_ISNONZERO)));
|
||||||
if (pcm & SSL_PCM_ISREG && finfo.filetype != APR_REG)
|
if (pcm & SSL_PCM_ISREG && finfo.filetype != APR_REG)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
if (pcm & SSL_PCM_ISDIR && finfo.filetype != APR_DIR)
|
if (pcm & SSL_PCM_ISDIR && finfo.filetype != APR_DIR)
|
||||||
|
Reference in New Issue
Block a user