提交 12b56b75 编写于 作者: W weijun

6990370: FindBugs scan - Malicious code vulnerability Warnings in com.sun.jndi.ldap.*

Reviewed-by: xuelei
上级 f84cf5e5
/* /*
* Copyright (c) 1999, 2002, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -113,6 +113,6 @@ public class BasicControl implements Control { ...@@ -113,6 +113,6 @@ public class BasicControl implements Control {
* ASN.1 BER encoded value. * ASN.1 BER encoded value.
*/ */
public byte[] getEncodedValue() { public byte[] getEncodedValue() {
return value; return value == null ? null : value.clone();
} }
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册