summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlaforge <laforge>2005-09-24 10:35:30 +0000
committerlaforge <laforge>2005-09-24 10:35:30 +0000
commite93e8b280e85d50199ea23c967a8b0be30e6f193 (patch)
treedc91d9809ce2284cb740b6286eee200b06d6842a
parentf8acced168f6bfcf7978aff1fd7a637da994019f (diff)
some further SQLITE3 fixes from the debian package
-rw-r--r--ulogd/sqlite3/ulogd_SQLITE3.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ulogd/sqlite3/ulogd_SQLITE3.c b/ulogd/sqlite3/ulogd_SQLITE3.c
index 79cd383..4c9caeb 100644
--- a/ulogd/sqlite3/ulogd_SQLITE3.c
+++ b/ulogd/sqlite3/ulogd_SQLITE3.c
@@ -107,6 +107,7 @@ static int _sqlite3_output(ulog_iret_t *result)
if (!res || !IS_VALID((*res))) {
/* no result, pass a null */
+ sqlite3_bind_null(p_stmt, col_counter);
col_counter++;
continue;
}
@@ -128,7 +129,7 @@ static int _sqlite3_output(ulog_iret_t *result)
sqlite3_bind_int(p_stmt,col_counter,res->value.ui8);
break;
case ULOGD_RET_UINT16:
- sqlite3_bind_int(p_stmt,col_counter,res->value.ui8);
+ sqlite3_bind_int(p_stmt,col_counter,res->value.ui16);
break;
case ULOGD_RET_IPADDR:
#ifdef IP_AS_STRING