Skip to content

Commit 9bde7f8

Browse files
committed
[client] also reject objects_max_deps < 0
1 parent 0450355 commit 9bde7f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycti/utils/opencti_stix2_splitter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def enlist_element(
198198
)
199199
else:
200200
is_compatible = is_id_supported(item_id)
201-
if self.objects_max_deps != 0 and nb_deps >= self.objects_max_deps:
201+
if 0 < self.objects_max_deps <= nb_deps:
202202
self.too_large_elements.append(item)
203203
elif is_compatible:
204204
self.elements.append(item)

0 commit comments

Comments
 (0)