diff options
Diffstat (limited to 'database/postgresql/edb-pgsql.c')
| -rw-r--r-- | database/postgresql/edb-pgsql.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/database/postgresql/edb-pgsql.c b/database/postgresql/edb-pgsql.c index 1ea7367..3ee2b39 100644 --- a/database/postgresql/edb-pgsql.c +++ b/database/postgresql/edb-pgsql.c @@ -617,7 +617,7 @@ int eDBblacklist_check(eurephiaCTX *ctx, const int type, const char *val) } if( dbr && PQntuples(dbr) > 0 ) { - blid = PQgetvalue(dbr, 0, 0); + blid = PGgetValue(dbr, 0, 0); if( blid != NULL ) { eurephia_log(ctx, LOG_WARNING, 0, "Attempt from blacklisted %s: %s", eDBattempt_types[type].descr, val); @@ -663,8 +663,8 @@ int eDBblacklist_check(eurephiaCTX *ctx, const int type, const char *val) } if( dbr && (PQntuples(dbr) > 0) ) { - atpid = PQgetvalue(dbr, 0, 0); - atpexceed = atoi_nullsafe(PQgetvalue(dbr, 0, 1)); + atpid = PGgetValue(dbr, 0, 0); + atpexceed = atoi_nullsafe(PGgetValue(dbr, 0, 1)); // If [type] has reached attempt limit and it is not black listed, black list it if( (atpexceed > 0) && (blid == NULL) ) { |
