]> git.ipfire.org Git - thirdparty/ulogd2.git/commitdiff
sqlite3: add sanity checking
authorEric Leblond <eric@regit.org>
Sun, 17 Mar 2013 23:25:01 +0000 (00:25 +0100)
committerEric Leblond <eric@regit.org>
Sat, 20 Apr 2013 09:36:45 +0000 (11:36 +0200)
Nullify sqlite3 handler at deinit.

output/sqlite3/ulogd_output_SQLITE3.c

index f9f2462c981cd0266cd092615ead021ebeee63e9..5c49055436dc4aec50d25e3f64203fe2ef5993c9 100644 (file)
@@ -431,6 +431,8 @@ sqlite3_stop(struct ulogd_pluginstance *pi)
 
        sqlite3_close(priv->dbh);
 
+       priv->dbh = NULL;
+
        return 0;
 }