Skip to content

Commit

Permalink
Merge pull request #1936 from pi-hole/fix/connection_error_crash
Browse files Browse the repository at this point in the history
Fix a crash resulting from a bad interaction between PRs #1928 and #1930
  • Loading branch information
DL6ER authored Apr 21, 2024
2 parents 4734e01 + e29bcb0 commit 1b71a44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/database/message-table.c
Original file line number Diff line number Diff line change
Expand Up @@ -1418,7 +1418,7 @@ void log_connection_error(const char *server, const char *reason, const char *er
log_warn("%s", buf);

// Log to database
const int rowid = add_message(CONNECTION_ERROR_MESSAGE, server, 2, reason, error);
const int rowid = add_message(CONNECTION_ERROR_MESSAGE, server, reason, error);

if(rowid == -1)
log_err("logg_connection_error(): Failed to add message to database");
Expand Down

0 comments on commit 1b71a44

Please sign in to comment.