Fix outbound size of salt variable

This commit is contained in:
Breno Silva 2013-06-12 09:51:25 -07:00
parent b362ab0d98
commit 885eeecefb

View File

@ -1355,7 +1355,7 @@ ngx_http_modsecurity_create_ctx(ngx_http_request_t *r)
}
}
salt[i] = '\0';
salt[TXID_SIZE-1] = '\0';
apr_table_setn(ctx->req->subprocess_env, "UNIQUE_ID", apr_psprintf(ctx->req->pool, "%s", salt));