Skip to content

Commit dbef49c

Browse files
committed
Do not fail fetches on unknown attributes
Just ignore the attributes we do not know anythign about. Signed-off-by: Simo Sorce <[email protected]>
1 parent 05803fd commit dbef49c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/storage/nssdb/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -951,6 +951,12 @@ impl Storage for NSSStorage {
951951
for a in NSS_SKIP_ATTRIBUTES {
952952
let _ = attrs.remove_ulong(a);
953953
}
954+
/* remove unknown attributes from query */
955+
for a in attributes {
956+
if !is_db_attribute(a.type_) {
957+
let _ = attrs.remove_ulong(a.type_);
958+
}
959+
}
954960
}
955961
let mut obj =
956962
self.fetch_by_nssid(&table, nssobjid, attrs.as_slice())?;

0 commit comments

Comments
 (0)