Merge "Check mOwnedByTransform to avoid DELSA on SPI" am: 197361431c

am: ad1edf143f

Change-Id: Ie505e32e6f3bef3fe39198396a40a2b534e2bcda
This commit is contained in:
nharold
2018-03-21 05:01:47 +00:00
committed by android-build-merger

View File

@@ -676,10 +676,12 @@ public class IpSecService extends IIpSecService.Stub {
@Override @Override
public void freeUnderlyingResources() { public void freeUnderlyingResources() {
try { try {
mSrvConfig if (!mOwnedByTransform) {
.getNetdInstance() mSrvConfig
.ipSecDeleteSecurityAssociation( .getNetdInstance()
mResourceId, mSourceAddress, mDestinationAddress, mSpi, 0, 0); .ipSecDeleteSecurityAssociation(
mResourceId, mSourceAddress, mDestinationAddress, mSpi, 0, 0);
}
} catch (ServiceSpecificException | RemoteException e) { } catch (ServiceSpecificException | RemoteException e) {
Log.e(TAG, "Failed to delete SPI reservation with ID: " + mResourceId, e); Log.e(TAG, "Failed to delete SPI reservation with ID: " + mResourceId, e);
} }