diff options
author | JackLivio <jack@livio.io> | 2019-04-02 09:35:49 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-02 09:35:49 -0400 |
commit | be06e225227d63d2b8486b8f4b505148393fff90 (patch) | |
tree | 060eb5d3ce64c54e55b47dfbdd10f52bfd144f73 | |
parent | 1265fce0ec352f4a2a65709960696a77bd4e68fb (diff) | |
download | sdl_core-be06e225227d63d2b8486b8f4b505148393fff90.tar.gz |
Check reset return value for service name and handled rpcs (#2868)
-rw-r--r-- | src/components/policy/policy_external/src/sql_pt_representation.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/components/policy/policy_external/src/sql_pt_representation.cc b/src/components/policy/policy_external/src/sql_pt_representation.cc index 6b2996f2fd..b9ccf70b7a 100644 --- a/src/components/policy/policy_external/src/sql_pt_representation.cc +++ b/src/components/policy/policy_external/src/sql_pt_representation.cc @@ -1846,8 +1846,14 @@ bool SQLPTRepresentation::GatherAppServiceParameters( handled_rpc); } - service_name_query.Reset(); - handled_rpcs_query.Reset(); + if (!service_name_query.Reset()) { + LOG4CXX_ERROR(logger_, "Could not reset service_name query"); + return false; + } + if (!handled_rpcs_query.Reset()) { + LOG4CXX_ERROR(logger_, "Could not reset handled_rpcs query"); + return false; + } } return true; |