Fixed NullPointerException in IpSecService-Netd binder layer
Replaced null with empty byte array in createTransportModeTransform for null auth.getKey, crypt.getKey() and authCrypt.getKey() Test: Ran CTS test Bug: 68052730 Change-Id: I5110b1297b4bfbb5766e8ecfd3d64f8110b52945
This commit is contained in:
committed by
manojboopathi
parent
da8815017b
commit
8c302f08a9
@@ -944,13 +944,13 @@ public class IpSecService extends IIpSecService.Stub {
|
|||||||
(c.getNetwork() != null) ? c.getNetwork().getNetworkHandle() : 0,
|
(c.getNetwork() != null) ? c.getNetwork().getNetworkHandle() : 0,
|
||||||
spi,
|
spi,
|
||||||
(auth != null) ? auth.getName() : "",
|
(auth != null) ? auth.getName() : "",
|
||||||
(auth != null) ? auth.getKey() : null,
|
(auth != null) ? auth.getKey() : new byte[] {},
|
||||||
(auth != null) ? auth.getTruncationLengthBits() : 0,
|
(auth != null) ? auth.getTruncationLengthBits() : 0,
|
||||||
(crypt != null) ? crypt.getName() : "",
|
(crypt != null) ? crypt.getName() : "",
|
||||||
(crypt != null) ? crypt.getKey() : null,
|
(crypt != null) ? crypt.getKey() : new byte[] {},
|
||||||
(crypt != null) ? crypt.getTruncationLengthBits() : 0,
|
(crypt != null) ? crypt.getTruncationLengthBits() : 0,
|
||||||
(authCrypt != null) ? authCrypt.getName() : "",
|
(authCrypt != null) ? authCrypt.getName() : "",
|
||||||
(authCrypt != null) ? authCrypt.getKey() : null,
|
(authCrypt != null) ? authCrypt.getKey() : new byte[] {},
|
||||||
(authCrypt != null) ? authCrypt.getTruncationLengthBits() : 0,
|
(authCrypt != null) ? authCrypt.getTruncationLengthBits() : 0,
|
||||||
encapType,
|
encapType,
|
||||||
encapLocalPort,
|
encapLocalPort,
|
||||||
|
|||||||
Reference in New Issue
Block a user