mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-07 08:56:17 +08:00
Merge pull request #1468 from Gowa2017/fix_sdf_print_device_info
OpenSession need a pointer of pointer
This commit is contained in:
@@ -103,7 +103,7 @@ int sdf_print_device_info(FILE *fp, int fmt, int ind, const char *lable, SDF_DEV
|
||||
void *hSession = NULL;
|
||||
DEVICEINFO devInfo;
|
||||
|
||||
if (SDF_OpenSession(dev->handle, hSession) != SDR_OK
|
||||
if (SDF_OpenSession(dev->handle, &hSession) != SDR_OK
|
||||
|| SDF_GetDeviceInfo(hSession, &devInfo) != SDR_OK) {
|
||||
error_print();
|
||||
goto end;
|
||||
|
||||
@@ -97,7 +97,7 @@ end:
|
||||
|
||||
void SDF_METHOD_free(SDF_METHOD *meth)
|
||||
{
|
||||
if (meth) free(meth->dso);
|
||||
if (meth) dylib_close_library(meth->dso);
|
||||
free(meth);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user