chaps: Protect against bad argument to C_GetFunctionList

BUG=None
TEST=Chaps unit tests (with ASAN) plus PKCS11 tests

Change-Id: I185250fd209e2233159d3edef75aec815e3d64fe
Reviewed-on: https://chromium-review.googlesource.com/221934
Reviewed-by: Darren Krahn <dkrahn@chromium.org>
Commit-Queue: David Drysdale <drysdale@google.com>
Tested-by: David Drysdale <drysdale@google.com>
1 file changed