empty query UUID means negative caching (ITS#6796)

This commit is contained in:
Pierangelo Masarati 2011-01-18 20:44:45 +00:00
parent c4bdb76de0
commit d829953dd0

View File

@ -674,9 +674,11 @@ url2query(
}
ber_str2bv( &lud->lud_exts[ i ][ STRLENOF( "x-uuid=" ) ], 0, 0, &tmpUUID );
rc = syn_UUID->ssyn_pretty( syn_UUID, &tmpUUID, &uuid, NULL );
if ( rc != LDAP_SUCCESS ) {
goto error;
if ( !BER_BVISEMPTY( &tmpUUID ) ) {
rc = syn_UUID->ssyn_pretty( syn_UUID, &tmpUUID, &uuid, NULL );
if ( rc != LDAP_SUCCESS ) {
goto error;
}
}
got |= GOT_UUID;