[master] 72509ff Bound check on TASK_QUEUE_END instead
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Wed Jun 10 11:07:38 CEST 2015
commit 72509ff650d5c203c07d8ad5f6fbe607cbb139a8
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Wed Jun 10 11:05:38 2015 +0200
Bound check on TASK_QUEUE_END instead
diff --git a/bin/varnishd/cache/cache_wrk.c b/bin/varnishd/cache/cache_wrk.c
index d9a34a7..86e0b92 100644
--- a/bin/varnishd/cache/cache_wrk.c
+++ b/bin/varnishd/cache/cache_wrk.c
@@ -226,7 +226,7 @@ Pool_Task(struct pool *pp, struct pool_task *task, enum task_how how)
CHECK_OBJ_NOTNULL(pp, POOL_MAGIC);
AN(task);
AN(task->func);
- assert(how <= TASK_QUEUE_VCA);
+ assert(how < TASK_QUEUE_END);
Lck_Lock(&pp->mtx);
More information about the varnish-commit
mailing list