Sun Java System Directory Server Enterprise Edition 6.1 Developer's Guide

Returns

This function returns NULL if the base type fits in the buffer. If the base type is longer than the buffer, the function allocates memory for the base type and returns a pointer to it.