diff options
author | Yuri Chislov <yuri.chislov@gmail.com> | 2018-03-19 12:04:06 +0000 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2018-03-20 13:40:45 +0000 |
commit | 9c30b80f467d3be36d1bd22f6f8dc3950501e434 (patch) | |
tree | bbdebb97a3899402bdaa729409f459037da2e186 /epan/dissectors/packet-wccp.c | |
parent | 3c1f26653d61a27313d4e32d267e4fe916168cee (diff) |
WCCP : fix mask assignment
Bug: 14538
Change-Id: I87afe01064e8940140d6fa8de3df778aad4e4dd7
Reviewed-on: https://code.wireshark.org/review/26550
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'epan/dissectors/packet-wccp.c')
-rw-r--r-- | epan/dissectors/packet-wccp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-wccp.c b/epan/dissectors/packet-wccp.c index 3e767d8f76..1109d82189 100644 --- a/epan/dissectors/packet-wccp.c +++ b/epan/dissectors/packet-wccp.c @@ -773,7 +773,7 @@ wccp_bucket_info(guint8 bucket_info, proto_tree *bucket_tree, guint32 start, int old_offset = offset; \ if (new_length<0) return new_length; \ offset += length-new_length; \ - if (old_offset <= offset) return old_offset - offset; \ + if (old_offset >= offset) return offset - old_offset; \ length = new_length; \ } |