if ( nslberi_ber_realloc( ber, length ) != 0 ) return( LBER_DEFAULT );
if ( nslberi_ber_realloc( ber, length ) != 0 ) {  return( -1 ); }
get_and_check_length( BerElement *ber, unsigned long length, Sockbuf *sock ){	/*	 * malloc a buffer for the contents and read it in.  This buffer	 * is passed to all the other ber decoding routines.	 */	ber->ber_len = length;#if defined( DOS ) && !defined( _WIN32 )	if ( length > 65535 ) {	/* DOS can't allocate > 64K */		return( LBER_DEFAULT );	}#endif /* DOS && !_WIN32 */	if ( (sock != NULL)  &&		( sock->sb_options & LBER_SOCKBUF_OPT_MAX_INCOMING_SIZE )		&& (length > sock->sb_max_incoming) ) {		return( LBER_DEFAULT );	}	if ( ber->ber_buf + length > ber->ber_end ) {		if ( nslberi_ber_realloc( ber, length ) != 0 )			return( LBER_DEFAULT );	}	ber->ber_ptr = ber->ber_buf;	ber->ber_end = ber->ber_buf + length;	ber->ber_rwptr = ber->ber_buf;	return 0;}