diff options
author | Pankaj <pankaj.s01@samsung.com> | 2016-09-20 18:09:49 +0200 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2016-12-13 10:13:41 +0100 |
commit | b034e8601036c41acfcbd39f12fcd4bfb75dfd13 (patch) | |
tree | 07d3e5db024e26012b8406c8e986ee484989ce55 | |
parent | f8ff3bec65e31dad1cabe0bd3e2f1fae9ef77f40 (diff) |
proxy: Remove redundant NULL check
https://bugs.freedesktop.org/show_bug.cgi?id=93589
-rw-r--r-- | p11-kit/proxy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/p11-kit/proxy.c b/p11-kit/proxy.c index 77e70c0..ad3caa5 100644 --- a/p11-kit/proxy.c +++ b/p11-kit/proxy.c @@ -645,7 +645,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; } } |