Skip to content

Commit

Permalink
VMODs handling of VCL_EVENT_COLD must be failsafe
Browse files Browse the repository at this point in the history
Also for 4.1
  • Loading branch information
Dridi committed Dec 1, 2015
1 parent fbd1c18 commit efd5dfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/varnishd/cache/cache_vcl.c
Expand Up @@ -404,7 +404,7 @@ vcl_set_state(struct vcl *vcl, const char *state)
break;
if (vcl->busy == 0) {
vcl->temp = vcl_temp_cold;
(void)vcl->conf->event_vcl(&ctx, VCL_EVENT_COLD);
AZ(vcl->conf->event_vcl(&ctx, VCL_EVENT_COLD));
vcl_BackendEvent(vcl, VCL_EVENT_COLD);
} else {
vcl->temp = vcl_temp_cooling;
Expand Down

0 comments on commit efd5dfd

Please sign in to comment.