mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-08-08 23:13:38 +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;
|
void *hSession = NULL;
|
||||||
DEVICEINFO devInfo;
|
DEVICEINFO devInfo;
|
||||||
|
|
||||||
if (SDF_OpenSession(dev->handle, hSession) != SDR_OK
|
if (SDF_OpenSession(dev->handle, &hSession) != SDR_OK
|
||||||
|| SDF_GetDeviceInfo(hSession, &devInfo) != SDR_OK) {
|
|| SDF_GetDeviceInfo(hSession, &devInfo) != SDR_OK) {
|
||||||
error_print();
|
error_print();
|
||||||
goto end;
|
goto end;
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ end:
|
|||||||
|
|
||||||
void SDF_METHOD_free(SDF_METHOD *meth)
|
void SDF_METHOD_free(SDF_METHOD *meth)
|
||||||
{
|
{
|
||||||
if (meth) free(meth->dso);
|
if (meth) dylib_close_library(meth->dso);
|
||||||
free(meth);
|
free(meth);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user