ITS#6005 crypt salt_format must use ber_memfree

This commit is contained in:
Howard Chu 2009-03-09 01:28:00 +00:00
parent 496937eb79
commit d8e3b4e83e

View file

@ -1107,7 +1107,7 @@ static int hash_crypt(
int lutil_salt_format(const char *format)
{
#ifdef SLAPD_CRYPT
free( salt_format );
ber_memfree( salt_format );
salt_format = format != NULL ? ber_strdup( format ) : NULL;
#endif