Fix a crash resulting from a bad interaction between PRs #1928 and #1930

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2024-04-20 09:39:39 +02:00
parent 4734e01b1e
commit e29bcb0695
No known key found for this signature in database
GPG Key ID: 00135ACBD90B28DD
1 changed files with 1 additions and 1 deletions

View File

@ -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");