Created attachment 120810 [details] proxy patch Hi, there is already checked for NULL at line p11-kit/proxy.c:641 after memory allocation .So doesn't required to check inside while loop. the respective patch has been attached ,please review it. ======================================================== diff --git a/p11-kit/proxy.c b/p11-kit/proxy.c index c554511..994f2f1 100644 --- a/p11-kit/proxy.c +++ b/p11-kit/proxy.c @@ -644,7 +644,7 @@ proxy_C_CloseAllSessions (CK_X_FUNCTION_LIST *self, p11_dict_iterate (state->px->sessions, &iter); count = 0; while (p11_dict_next (&iter, NULL, (void**)&sess)) { - if (sess->wrap_slot == id && to_close) + if (sess->wrap_slot == id) to_close[count++] = sess->wrap_session; } } ----------------------------------------------------- Thanks ! Pankaj Sharma
Thanks, merged as: https://github.com/p11-glue/p11-kit/commit/b034e8601036c41acfcbd39f12fcd4bfb75dfd13
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.