diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-06-07 05:41:26 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-06-07 05:41:26 +0200 |
commit | f20b015724f082c278a85853954ec94055fe0b02 (patch) | |
tree | 3a73147ef9ce898991ff640d25a5adf375426fd4 /src/mds-server/interception-condition.c | |
parent | add zero length check (diff) | |
download | mds-f20b015724f082c278a85853954ec94055fe0b02.tar.gz mds-f20b015724f082c278a85853954ec94055fe0b02.tar.bz2 mds-f20b015724f082c278a85853954ec94055fe0b02.tar.xz |
fix some client marshalling errors
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/mds-server/interception-condition.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mds-server/interception-condition.c b/src/mds-server/interception-condition.c index b625b2e..091a6e5 100644 --- a/src/mds-server/interception-condition.c +++ b/src/mds-server/interception-condition.c @@ -74,7 +74,7 @@ size_t interception_condition_unmarshal(interception_condition_t* restrict this, if ((this->condition = malloc(n)) == NULL) return 0; memcpy(this->condition, data, n); - return sizeof(size_t) + sizeof(int64_t) + sizeof(int) + n; + return sizeof(size_t) + sizeof(int64_t) + 2 * sizeof(int) + n; } @@ -86,7 +86,7 @@ size_t interception_condition_unmarshal(interception_condition_t* restrict this, */ size_t interception_condition_unmarshal_skip(char* restrict data) { - size_t n = sizeof(size_t) + sizeof(int64_t) + sizeof(int); + size_t n = sizeof(size_t) + sizeof(int64_t) + 2 * sizeof(int); buf_next(data, int, 1); buf_next(data, size_t, 1); buf_next(data, int64_t, 1); |