Skip to content

Commit

Permalink
Inject the byte[] extended request value into the instance in any case
Browse files Browse the repository at this point in the history
  • Loading branch information
elecharny committed Jan 7, 2022
1 parent 32b2524 commit 25cab63
Showing 1 changed file with 8 additions and 10 deletions.
Expand Up @@ -75,18 +75,16 @@ public void action( LdapMessageContainer<ExtendedRequest> container ) throws Dec
// value
try
{
if ( factory == null )
if ( tlv.getLength() == 0 )
{
if ( tlv.getLength() == 0 )
{
( ( OpaqueExtendedRequest ) extendedRequest ).setRequestValue( Strings.EMPTY_BYTES );
}
else
{
( ( OpaqueExtendedRequest ) extendedRequest ).setRequestValue( tlv.getValue().getData() );
}
}
( ( OpaqueExtendedRequest ) extendedRequest ).setRequestValue( Strings.EMPTY_BYTES );
}
else
{
( ( OpaqueExtendedRequest ) extendedRequest ).setRequestValue( tlv.getValue().getData() );
}

if ( factory != null )
{
factory.decodeValue( extendedRequest, tlv.getValue().getData() );
}
Expand Down

0 comments on commit 25cab63

Please sign in to comment.