mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

david_page
03.15.2007 a6f8e77979e4968ff1862b0b9e277309fe8bc5fd
opends/src/server/org/opends/server/util/PasswordReader.java
@@ -210,17 +210,13 @@
        if ((charRead == -1) || (charRead == '\n'))
        {
          // This is the end of the value.
          if (pos == 0)
          pwChars = new char[pos];
          if (0 < pos)
          {
            return null;
          }
          else
          {
            pwChars = new char[pos];
            System.arraycopy(pwBuffer, 0, pwChars, 0, pos);
            Arrays.fill(pwBuffer, '\u0000');
            return pwChars;
          }
          return pwChars;
        }
        else if (charRead == '\r')
        {