Commit 02856045 authored by Shawn Webb's avatar Shawn Webb
Browse files

Always check sanity


Signed-off-by: Shawn Webb's avatarShawn Webb <shawn.webb@hardenedbsd.org>
parent 3a6b9337
......@@ -306,6 +306,10 @@ _lattutil_log_sqlite_dolog(log_sqlite3_ctx_t *ctx, const char *msgtype, const ch
char *querystr;
bool res;
if (ctx == NULL || msgtype == NULL || msg == NULL) {
return (false);
}
memset(&tv, 0, sizeof(tv));
gettimeofday(&tv, NULL);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment