aboutsummaryrefslogtreecommitdiff
path: root/src/arm
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-07-06 11:14:11 +0000
committerChristian Grothoff <christian@grothoff.org>2016-07-06 11:14:11 +0000
commitf5beb3eaf163fc0bf2a4f86bd413d3ee6939cfea (patch)
treeb59a38ad9e2296b3d2c8cc3302f21cf6d3ecc458 /src/arm
parent6db64c5eae089e1d81cafbb051f65412790d16bc (diff)
downloadgnunet-f5beb3eaf163fc0bf2a4f86bd413d3ee6939cfea.tar.gz
gnunet-f5beb3eaf163fc0bf2a4f86bd413d3ee6939cfea.zip
-fix misc issues
Diffstat (limited to 'src/arm')
-rw-r--r--src/arm/arm_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arm/arm_api.c b/src/arm/arm_api.c
index ed36c61cd..19b192378 100644
--- a/src/arm/arm_api.c
+++ b/src/arm/arm_api.c
@@ -322,7 +322,7 @@ check_arm_list_result (void *cls,
322{ 322{
323 const char *pos = (const char *) &lres[1]; 323 const char *pos = (const char *) &lres[1];
324 uint16_t rcount = ntohs (lres->count); 324 uint16_t rcount = ntohs (lres->count);
325 uint16_t msize = ntohs (lres->arm_msg.header.size); 325 uint16_t msize = ntohs (lres->arm_msg.header.size) - sizeof (*lres);
326 uint16_t size_check; 326 uint16_t size_check;
327 327
328 size_check = 0; 328 size_check = 0;
@@ -355,7 +355,7 @@ handle_arm_list_result (void *cls,
355 uint16_t rcount = ntohs (lres->count); 355 uint16_t rcount = ntohs (lres->count);
356 const char *list[rcount]; 356 const char *list[rcount];
357 const char *pos = (const char *) &lres[1]; 357 const char *pos = (const char *) &lres[1];
358 uint16_t msize = ntohs (lres->arm_msg.header.size); 358 uint16_t msize = ntohs (lres->arm_msg.header.size) - sizeof (*lres);
359 struct GNUNET_ARM_Operation *op; 359 struct GNUNET_ARM_Operation *op;
360 uint16_t size_check; 360 uint16_t size_check;
361 uint64_t id; 361 uint64_t id;