增加app not pinning的统计信息,修复判空。

This commit is contained in:
zhengchao
2019-07-26 14:16:07 +06:00
committed by luwenpeng
parent 7c12f06b29
commit 63bcc591a7
2 changed files with 7 additions and 4 deletions

View File

@@ -145,13 +145,13 @@ static size_t ssl_svc_client_st_mk_key(const struct ssl_chello* chello, const st
static long cli_st_read_cb(void * data, const uchar * key, uint size, void * user_arg)
{
struct ssl_svc_client_st* cli_st=(struct ssl_svc_client_st*)data;
struct ssl_service_cache* svc_cache=cli_st->ref_svc_cache;
struct ssl_service_status* result=(struct ssl_service_status*)user_arg;
if (cli_st == NULL)
{
return 0;
}
struct ssl_service_cache* svc_cache=cli_st->ref_svc_cache;
if(cli_st->suspect_pinning_count==0)
{
result->cli_pinning_status=PINNING_ST_NOT_PINNING;
@@ -414,6 +414,8 @@ void ssl_service_cache_destroy(struct ssl_service_cache* cache)
cache->cli_st_hash=NULL;
MESA_htable_destroy(cache->srv_st_hash, NULL);
cache->srv_st_hash=NULL;
MESA_htable_destroy(cache->app_st_hash, NULL);
cache->app_st_hash=NULL;
free(cache);
return;
}