Re: [PATCH] sim: handling crash in error scenario for SIM PIN query

2019-12-20 Thread Denis Kenzior
Hi Antara, On 12/19/19 6:57 AM, Antara Borwankar wrote: 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

[PATCH] sim: handling crash in error scenario for SIM PIN query

2019-12-19 Thread Antara Borwankar
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. --- src/sim.c | 4 +++- 1 file changed, 3 inser