diff options
author | Gerald Combs <gerald@wireshark.org> | 2005-08-01 13:52:22 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2005-08-01 13:52:22 +0000 |
commit | 6e18761afc1f19776615a8412be1677481b6a49f (patch) | |
tree | 4a592e138756132f6be367ae6623a37a2051d9df | |
parent | 1602310bd4d7f679285ca61dff98e4f8d52164d4 (diff) |
Break out of a loop before we exhaust system memory.
svn path=/trunk/; revision=15163
-rw-r--r-- | epan/dissectors/packet-isakmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-isakmp.c b/epan/dissectors/packet-isakmp.c index 86fff4faeb..cfaecc7fcc 100644 --- a/epan/dissectors/packet-isakmp.c +++ b/epan/dissectors/packet-isakmp.c @@ -1201,7 +1201,7 @@ dissect_certreq_v2(tvbuff_t *tvb, int offset, int length, proto_tree *tree, length -= 1; /* this is a list of 20 byte SHA-1 hashes */ - while (length) { + while (length > 0) { proto_tree_add_item(tree, hf_ike_v2_certificate_authority, tvb, offset, 20, FALSE); length-=20; } |