]> git.ipfire.org Git - thirdparty/ulogd2.git/commitdiff
From: Pierre Chifflier <chifflier@inl.fr>
author/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>
Sun, 3 Feb 2008 12:02:20 +0000 (12:02 +0000)
committer/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>
Sun, 3 Feb 2008 12:02:20 +0000 (12:02 +0000)
Fix incorrect options for PGsql module.

output/pgsql/ulogd_output_PGSQL.c

index 4737d28142c144f3a53501830c8a8840078e08d3..6697b6450cff2934b68ee19347010b95a0074960 100644 (file)
@@ -78,8 +78,8 @@ static struct config_keyset pgsql_kset = {
 #define host_ce(x)     (x->ces[DB_CE_NUM+1])
 #define user_ce(x)     (x->ces[DB_CE_NUM+2])
 #define pass_ce(x)     (x->ces[DB_CE_NUM+3])
-#define port_ce(x)     (x->ces[DB_CE_NUM+5])
-#define schema_ce(x)   (x->ces[DB_CE_NUM+6])
+#define port_ce(x)     (x->ces[DB_CE_NUM+4])
+#define schema_ce(x)   (x->ces[DB_CE_NUM+5])
 
 #define PGSQL_HAVE_NAMESPACE_TEMPLATE                  \
        "SELECT nspname FROM pg_namespace n WHERE n.nspname='%s'"