]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
use ERROR before there's an sqlite error
authorAlan T. DeKok <aland@freeradius.org>
Fri, 20 Oct 2017 22:19:40 +0000 (18:19 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 20 Oct 2017 22:19:40 +0000 (18:19 -0400)
src/modules/rlm_sql/drivers/rlm_sql_sqlite/rlm_sql_sqlite.c

index e488f46da4ff25a5e5632213c10cb7bcfea499d0..79ea31ef343ce718fd0273a60d64af7d0e422fcf 100644 (file)
@@ -334,7 +334,7 @@ static int sql_loadfile(TALLOC_CTX *ctx, sqlite3 *db, char const *filename)
 
 #ifndef NDEBUG
                if ((q - p) > (1 << 20)) {
-                       sql_print_error(db, status, "Failed preparing statement %i: too long!", statement_cnt);
+                       ERROR("Failed preparing statement %i: too long!", statement_cnt);
                        talloc_free(buffer);
                        return -1;
                }