From: Pierangelo Masarati Date: Tue, 18 Jan 2011 20:44:45 +0000 (+0000) Subject: empty query UUID means negative caching (ITS#6796) X-Git-Tag: MIGRATION_CVS2GIT~193 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d829953dd096f15740b64437c1cb6d6fef359e78;p=openldap empty query UUID means negative caching (ITS#6796) --- diff --git a/servers/slapd/overlays/pcache.c b/servers/slapd/overlays/pcache.c index 04231ae108..68c324d86d 100644 --- a/servers/slapd/overlays/pcache.c +++ b/servers/slapd/overlays/pcache.c @@ -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;