Merge "Force creation of Socket upon Transform application" am: 119cf2bc61

am: abcf07af81

Change-Id: I2034448a22461d51728e66bcc0e965821aa4a42f
This commit is contained in:
Benedict Wong
2018-04-04 12:52:00 -07:00
committed by android-build-merger

View File

@@ -337,6 +337,9 @@ public final class IpSecManager {
*/
public void applyTransportModeTransform(@NonNull Socket socket,
@PolicyDirection int direction, @NonNull IpSecTransform transform) throws IOException {
// Ensure creation of FD. See b/77548890 for more details.
socket.getSoLinger();
applyTransportModeTransform(socket.getFileDescriptor$(), direction, transform);
}
@@ -441,6 +444,9 @@ public final class IpSecManager {
* @throws IOException indicating that the transform could not be removed from the socket
*/
public void removeTransportModeTransforms(@NonNull Socket socket) throws IOException {
// Ensure creation of FD. See b/77548890 for more details.
socket.getSoLinger();
removeTransportModeTransforms(socket.getFileDescriptor$());
}