-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
The deprecated function mongoc_client_kill_cursor does not pass database or collection name, but if an APM callback is registered for "command started", it attempts to dereference the database and collection name.
This function is deprecated so just skip APM.
Coverity report:
Defect 99992 (STATIC_C)
Checker FORWARD_NULL (subcategory none)
File: /src/mongoc/mongoc-client.c
Function _mongoc_client_kill_cursor
/src/mongoc/mongoc-client.c, line: 1638
Comparing "db" to null implies that "db" might be null.
if (db && collection &&