#85 修复ssl、http业务层中的编译警告。
This commit is contained in:
@@ -275,7 +275,7 @@ void trusted_CA_update_crl_cb(int table_id,const char* table_line,void* u_para)
|
||||
ret=tfe_proxy_ssl_add_crl(crl_file);
|
||||
if(ret<0)
|
||||
{
|
||||
TFE_LOG_ERROR(g_pangu_rt->local_logger, "Trusted CA Store add crl failed %d:%s:%s", crl_id, cert_id, crl_file);
|
||||
TFE_LOG_ERROR(g_pangu_rt->local_logger, "Trusted CA Store add crl failed %d:%d:%s", crl_id, cert_id, crl_file);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -287,7 +287,7 @@ void trusted_CA_update_crl_cb(int table_id,const char* table_line,void* u_para)
|
||||
ret=tfe_proxy_ssl_del_crl(crl_file);
|
||||
if(ret<0)
|
||||
{
|
||||
TFE_LOG_ERROR(g_pangu_rt->local_logger, "Trusted CA Store del crl failed %d:%s:%s", crl_id, cert_id, crl_file);
|
||||
TFE_LOG_ERROR(g_pangu_rt->local_logger, "Trusted CA Store del crl failed %d:%d:%s", crl_id, cert_id, crl_file);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -298,7 +298,6 @@ void trusted_CA_update_crl_cb(int table_id,const char* table_line,void* u_para)
|
||||
}
|
||||
void trusted_CA_update_finish_cb(void* u_para)
|
||||
{
|
||||
int is_last_updating_table=0, ret=0;
|
||||
if(g_pangu_rt->ca_store_reseting>0)
|
||||
{
|
||||
g_pangu_rt->ca_store_reseting--;
|
||||
@@ -885,7 +884,7 @@ enum pangu_action http_scan(const struct tfe_http_session * session, enum tfe_ht
|
||||
struct http_field_name field_name;
|
||||
struct Maat_rule_t result[MAX_SCAN_RESULT];
|
||||
char buff[TFE_STRING_MAX], * p = NULL;
|
||||
int scan_ret = 0, table_id = 0, read_rule_ret = 0;
|
||||
int scan_ret = 0, table_id = 0;
|
||||
size_t hit_cnt = 0, i = 0;
|
||||
|
||||
if (events & EV_HTTP_REQ_HDR)
|
||||
@@ -1185,7 +1184,6 @@ static void cache_pending_on_fail(enum e_future_error err, const char * what, vo
|
||||
|
||||
void cache_pending(const struct tfe_http_session * session, unsigned int thread_id, struct pangu_http_ctx * ctx)
|
||||
{
|
||||
enum cache_pending_result ret;
|
||||
ctx->f_cache_pending=future_create("cache_pend", cache_pending_on_succ, cache_pending_on_fail, ctx);
|
||||
ctx->ref_session=tfe_http_session_allow_write(session);
|
||||
ctx->pending_result=web_cache_async_pending(g_pangu_rt->cache, thread_id, session->req, &(ctx->cmid), ctx->f_cache_pending);
|
||||
@@ -1274,12 +1272,13 @@ void pangu_on_http_end(const struct tfe_stream * stream,
|
||||
const struct tfe_http_session * session, unsigned int thread_id, void ** pme)
|
||||
{
|
||||
struct pangu_http_ctx * ctx = *(struct pangu_http_ctx **) pme;
|
||||
int i=0, j=0,ret=0;
|
||||
size_t i=0, j=0;
|
||||
int ret=0;
|
||||
if(ctx->action == PG_ACTION_REPLACE && ctx->rep_ctx->actually_replaced==0)
|
||||
{
|
||||
for(i=0; i< ctx->n_enforce; i++)
|
||||
{
|
||||
if(ctx->enforce_rules[i].action == PG_ACTION_REPLACE)
|
||||
if((unsigned char)ctx->enforce_rules[i].action == PG_ACTION_REPLACE)
|
||||
{
|
||||
if(i+1 > ctx->n_enforce)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user