shpedoikal/opencryptoki — comment on commit 5ec4ac1b86e96085d7d64c432c57777f5ab7cd12
File:  line 0
By AshleyLai:

The second parameter of fread is the size and third parameter is nitems. On success case it will return nitems. Since one of the input is 1 so the above fix will work fine but I'm just curious if we should switch for correctness and check for 1 as the return value. If the size is really the number of items then the above fix is fine. Just throwing something out there... no biggie!!! :-)