diff options
author | Mattias Andrée <maandree@kth.se> | 2016-12-19 02:24:24 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-12-19 02:24:24 +0100 |
commit | 2d890bc579aefc579755f29369ed07a4d107a9e3 (patch) | |
tree | 4402eb12c2a627f104838de218c3d70a0f2a7ca5 | |
parent | List priorities programs use (diff) | |
download | libcoopgamma-2d890bc579aefc579755f29369ed07a4d107a9e3.tar.gz libcoopgamma-2d890bc579aefc579755f29369ed07a4d107a9e3.tar.bz2 libcoopgamma-2d890bc579aefc579755f29369ed07a4d107a9e3.tar.xz |
Fix buf in libcoopgamma_get_gamma_recv where all filters are given the priority of the first filter
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | src/libcoopgamma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcoopgamma.c b/src/libcoopgamma.c index abf05c5..40baf77 100644 --- a/src/libcoopgamma.c +++ b/src/libcoopgamma.c @@ -2415,7 +2415,7 @@ int libcoopgamma_get_gamma_recv(libcoopgamma_filter_table_t* restrict table, { if (off + sizeof(int64_t) > n) goto bad; - table->filters[i].priority = *(int64_t*)payload; + table->filters[i].priority = *(int64_t*)(payload + off); off += sizeof(int64_t); if (memchr(payload + off, '\0', n - off) == NULL) goto bad; |