Skip to content

Commit

Permalink
Bugfix: fixed issues/56 that worker process exited on signal 11 if ru…
Browse files Browse the repository at this point in the history
…nning control query without group argument or nonexistent group
  • Loading branch information
vozlt committed Sep 21, 2016
1 parent f56b5b6 commit 64e0055
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ngx_http_vhost_traffic_status_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -1419,6 +1419,7 @@ ngx_http_vhost_traffic_status_display_handler_control(ngx_http_request_t *r)
control->r = r;
control->command = NGX_HTTP_VHOST_TRAFFIC_STATUS_CONTROL_CMD_NONE;
control->group = -2;
control->zone = ngx_pcalloc(r->pool, sizeof(ngx_str_t));
control->arg_cmd = &arg_cmd;
control->arg_group = &arg_group;
control->arg_zone = &arg_zone;
Expand Down Expand Up @@ -1493,8 +1494,6 @@ ngx_http_vhost_traffic_status_display_handler_control(ngx_http_request_t *r)
}

} else {
control->zone = ngx_palloc(r->pool, sizeof(ngx_str_t));

rc = ngx_http_vhost_traffic_status_copy_str(r->pool, control->zone, &arg_zone);
if (rc != NGX_OK) {
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
Expand Down

0 comments on commit 64e0055

Please sign in to comment.