summaryrefslogtreecommitdiff
path: root/src/pq/db_pq.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-05-15 09:53:31 +0200
committerChristian Grothoff <christian@grothoff.org>2015-05-15 09:53:31 +0200
commit6b9ccc4ca0a5cb35c6cc76a8d5247ac914561d64 (patch)
tree9fc3b9ae2f2cd16e405bb953e390381953ded447 /src/pq/db_pq.c
parent3ac86568b0223ab3dfca83b497208dc0f2261fdd (diff)
downloadexchange-6b9ccc4ca0a5cb35c6cc76a8d5247ac914561d64.tar.gz
exchange-6b9ccc4ca0a5cb35c6cc76a8d5247ac914561d64.tar.bz2
exchange-6b9ccc4ca0a5cb35c6cc76a8d5247ac914561d64.zip
fixing misc. minor bugs, towards getting testcases to work
Diffstat (limited to 'src/pq/db_pq.c')
-rw-r--r--src/pq/db_pq.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pq/db_pq.c b/src/pq/db_pq.c
index 72a9370ed..42ce3fa71 100644
--- a/src/pq/db_pq.c
+++ b/src/pq/db_pq.c
@@ -60,6 +60,7 @@ TALER_PQ_exec_prepared (PGconn *db_conn,
break;
case TALER_PQ_QF_RSA_PUBLIC_KEY:
case TALER_PQ_QF_RSA_SIGNATURE:
+ case TALER_PQ_QF_TIME_ABSOLUTE:
len++;
break;
default:
@@ -67,6 +68,7 @@ TALER_PQ_exec_prepared (PGconn *db_conn,
GNUNET_assert (0);
break;
}
+ i++;
}
/* new scope to allow stack allocation without alloca */
@@ -190,6 +192,7 @@ TALER_PQ_exec_prepared (PGconn *db_conn,
GNUNET_assert (0);
break;
}
+ i++;
}
GNUNET_assert (off == len);
res = PQexecPrepared (db_conn,
@@ -200,7 +203,7 @@ TALER_PQ_exec_prepared (PGconn *db_conn,
param_formats,
1);
for (off = 0; off < soff; off++)
- GNUNET_free (scratch[soff]);
+ GNUNET_free (scratch[off]);
return res;
}
}