Null deref in sdb_sync