~connman-maintainers/ofono/trunk

Viewing all changes in revision 8790.

  • Committer: Denis Kenzior
  • Author(s): Antara Borwankar
  • Date: 2019-12-20 18:46:18 UTC
  • Revision ID: git-v1:d90cfdd71cb9eb2b533a20e4aea6bbf79e79fd2e
sim: handling crash in error scenario for SIM PIN query

In case of error in sim_pin_query_cb function. pin_type is set
to -1. This is causing segmentation fault in function
sim_passwd_name due to invalid index pin_type = -1. Fixing this
issue by handling error case before calling sim_passwd_name
function.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: