commit | 60419a7e96577cf783b3b45bf3984f9fb0d7ddff | [log] [tgz] |
---|---|---|
author | Steve Dower <steve.dower@python.org> | Mon Jun 24 08:42:54 2019 -0700 |
committer | GitHub <noreply@github.com> | Mon Jun 24 08:42:54 2019 -0700 |
tree | 2718cb915663c42902621491ba60accce6729d42 | |
parent | 9bbf4d7083a819cbcee2a6cd3df2802d4c50f734 [diff] [blame] |
bpo-37363: Add audit events for a range of modules (GH-14301)
diff --git a/Modules/_sqlite/module.c b/Modules/_sqlite/module.c index c487ba9..9fe0dc9 100644 --- a/Modules/_sqlite/module.c +++ b/Modules/_sqlite/module.c
@@ -85,6 +85,10 @@ factory = (PyObject*)&pysqlite_ConnectionType; } + if (PySys_Audit("sqlite3.connect", "O", database) < 0) { + return NULL; + } + result = PyObject_Call(factory, args, kwargs); return result;