summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-02-06 03:02:14 +0100
committerFlorian Dold <florian.dold@gmail.com>2018-02-06 03:02:14 +0100
commit24c18fadb80d72bb3cf34bae9b51c546c6153510 (patch)
tree2f0bb8ac38bf957bdd5ecf372e24f47645e18b33 /src
parent48fd50f922a7385dfd46c81dc6ecef65ef94812b (diff)
downloadexchange-24c18fadb80d72bb3cf34bae9b51c546c6153510.tar.gz
exchange-24c18fadb80d72bb3cf34bae9b51c546c6153510.tar.bz2
exchange-24c18fadb80d72bb3cf34bae9b51c546c6153510.zip
wirewatch: set last_row_off_size when we set last_row_off
Diffstat (limited to 'src')
-rw-r--r--src/exchange/taler-exchange-wirewatch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-wirewatch.c b/src/exchange/taler-exchange-wirewatch.c
index f28c80073..f1e4e8fbd 100644
--- a/src/exchange/taler-exchange-wirewatch.c
+++ b/src/exchange/taler-exchange-wirewatch.c
@@ -352,6 +352,7 @@ history_cb (void *cls,
"Wire transfer over %s has invalid subject `%s', sending it back!\n",
TALER_amount2s (&details->amount),
details->wtid_s);
+ GNUNET_break (0 != row_off_size);
if (last_row_off_size != row_off_size)
{
GNUNET_free_non_null (last_row_off);
@@ -405,10 +406,13 @@ history_cb (void *cls,
return GNUNET_SYSERR;
}
+ GNUNET_break (0 != row_off_size);
+
if (last_row_off_size != row_off_size)
{
GNUNET_free_non_null (last_row_off);
last_row_off = GNUNET_malloc (row_off_size);
+ last_row_off_size = row_off_size;
}
memcpy (last_row_off,
row_off,