fixed potentially dereferencing null pointer

This commit is contained in:
Frank Morgner
2015-01-25 03:53:52 +01:00
parent f03760e27e
commit feebfe7a74
4 changed files with 14 additions and 7 deletions

View File

@@ -295,7 +295,7 @@ IFDHTransmitToICC (DWORD Lun, SCARD_IO_HEADER SendPci, PUCHAR TxBuffer,
r = IFD_SUCCESS;
err:
if (r != IFD_SUCCESS)
if (r != IFD_SUCCESS && RxLength)
*RxLength = 0;
free(rapdu);