From 984a80933e88bef2f09875333cd936ba42e29ec8 Mon Sep 17 00:00:00 2001 From: "srinivasa.m" Date: Mon, 18 Feb 2019 13:44:41 +0530 Subject: [PATCH] SVACE issues Fix Change-Id: I9a8ef157371c7c242f2142c3e15298c9ce738038 --- server/fido_server.c | 4 ++-- server/fido_uaf_policy_checker.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/fido_server.c b/server/fido_server.c index ebff8f0..d600cea 100755 --- a/server/fido_server.c +++ b/server/fido_server.c @@ -541,7 +541,7 @@ __copy_convert_uaf_trans_list(GList *uaf_tr_list) asm_tr->content_type = __dup_string(uaf_tr->content_type); if (uaf_tr->display_charac != NULL) { asm_tr->display_charac = calloc(1, sizeof(_fido_asm_display_png_characteristics_descriptor_t)); - if(asm_tr->display_charac == NULL) { + if (asm_tr->display_charac == NULL) { SAFE_DELETE(asm_tr); return NULL; } @@ -560,7 +560,7 @@ __copy_convert_uaf_trans_list(GList *uaf_tr_list) fido_rgb_pallette_entry_s *uaf_plte_entry = (fido_rgb_pallette_entry_s*)(uaf_plte_iter->data); fido_rgb_pallette_entry_s *asm_plte_entry = calloc(1, sizeof(fido_rgb_pallette_entry_s)); - if(asm_plte_entry == NULL) { + if (asm_plte_entry == NULL) { SAFE_DELETE(asm_tr->display_charac); SAFE_DELETE(asm_tr); return NULL; diff --git a/server/fido_uaf_policy_checker.c b/server/fido_uaf_policy_checker.c index ece286c..23fc84f 100755 --- a/server/fido_uaf_policy_checker.c +++ b/server/fido_uaf_policy_checker.c @@ -560,7 +560,7 @@ _policy_checker_get_matched_auth_list(_policy_t *policy, GList *auth_list) for (; allowed_list_iter_next != NULL; allowed_list_iter_next = allowed_list_iter_next->next) { _matched_auth_data_t *matched_auth_data_nxt = (_matched_auth_data_t*)allowed_list_iter_next->data; - if(matched_auth_data_nxt == NULL){ + if (matched_auth_data_nxt == NULL) { SAFE_DELETE(matched_auth_data_new); return NULL; } -- 2.7.4