diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2024-09-30 16:37:01 +0200 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2024-09-30 16:37:01 +0200 |
commit | 67c3a57235601c342dfab646c8237c274a245abf (patch) | |
tree | cf1a1c1929477e837987f610e2ad037e0aeb3479 | |
parent | f321a7bfecfadb07db315991494eda8cdd97db6c (diff) | |
download | gnunet-67c3a57235601c342dfab646c8237c274a245abf.tar.gz gnunet-67c3a57235601c342dfab646c8237c274a245abf.zip |
pq: Fixes #9234
-rw-r--r-- | src/lib/pq/pq_result_helper.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/pq/pq_result_helper.c b/src/lib/pq/pq_result_helper.c index 798828e24..caf9a581d 100644 --- a/src/lib/pq/pq_result_helper.c +++ b/src/lib/pq/pq_result_helper.c | |||
@@ -1454,8 +1454,7 @@ extract_array_generic ( | |||
1454 | uint32_t sz; | 1454 | uint32_t sz; |
1455 | 1455 | ||
1456 | sz = ntohl (*(uint32_t *) ptr); | 1456 | sz = ntohl (*(uint32_t *) ptr); |
1457 | sz += is_string ? 1 : 0; | 1457 | total += sz + (is_string ? 1 : 0); |
1458 | total += sz; | ||
1459 | ptr += sizeof(uint32_t); | 1458 | ptr += sizeof(uint32_t); |
1460 | ptr += sz; | 1459 | ptr += sz; |
1461 | 1460 | ||