Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-11-18 19:49:00 +0300
committerIgor Sysoev <igor@sysoev.ru>2003-11-18 19:49:00 +0300
commit222a2adf40eb25ff613c251f15032f1e39d7f609 (patch)
tree703e825cbfacdac4e1fdc73889371755bf5f68bb /src/http/ngx_http_busy_lock.c
parent0b2b4ccd2c8a31caea0ef760b55a63c2fc169838 (diff)
nginx-0.0.1-2003-11-18-19:49:00 import
Diffstat (limited to 'src/http/ngx_http_busy_lock.c')
-rw-r--r--src/http/ngx_http_busy_lock.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/http/ngx_http_busy_lock.c b/src/http/ngx_http_busy_lock.c
index 085cd56ce..172e15eb0 100644
--- a/src/http/ngx_http_busy_lock.c
+++ b/src/http/ngx_http_busy_lock.c
@@ -103,6 +103,10 @@ ngx_log_debug(bc->event->log, "BUSYLOCK: %d" _ rc);
void ngx_http_busy_unlock(ngx_http_busy_lock_t *bl,
ngx_http_busy_lock_ctx_t *bc)
{
+ if (bl == NULL) {
+ return;
+ }
+
if (bl->md5) {
bl->md5_mask[bc->slot / 8] &= ~(1 << (bc->slot & 7));
bl->cachable--;