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

Reviewed-by: xuelei
This commit is contained in:
Weijun Wang 2010-12-07 17:30:54 +08:00
parent e9ba5a8f34
commit aaf74fa919

View File

@ -1,5 +1,5 @@
/*
* 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.
*
* This code is free software; you can redistribute it and/or modify it
@ -113,6 +113,6 @@ public class BasicControl implements Control {
* ASN.1 BER encoded value.
*/
public byte[] getEncodedValue() {
return value;
return value == null ? null : value.clone();
}
}