Merge "Check mOwnedByTransform to avoid DELSA on SPI"
This commit is contained in:
@@ -676,10 +676,12 @@ public class IpSecService extends IIpSecService.Stub {
|
||||
@Override
|
||||
public void freeUnderlyingResources() {
|
||||
try {
|
||||
if (!mOwnedByTransform) {
|
||||
mSrvConfig
|
||||
.getNetdInstance()
|
||||
.ipSecDeleteSecurityAssociation(
|
||||
mResourceId, mSourceAddress, mDestinationAddress, mSpi, 0, 0);
|
||||
}
|
||||
} catch (ServiceSpecificException | RemoteException e) {
|
||||
Log.e(TAG, "Failed to delete SPI reservation with ID: " + mResourceId, e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user