alshabib
Committed by Gerrit Code Review

fix igmp deserialization issue

Change-Id: I38c37a6114957414ba4e13a690cd478b1116ef2c
...@@ -102,9 +102,10 @@ public class IGMPMembership extends IGMPGroup { ...@@ -102,9 +102,10 @@ public class IGMPMembership extends IGMPGroup {
102 102
103 gaddr = Ip4Address.valueOf(bb.getInt()); 103 gaddr = Ip4Address.valueOf(bb.getInt());
104 104
105 +
106 + for (; nsrcs > 0; nsrcs--) {
105 // Make sure we have enough buffer to hold all of these sources 107 // Make sure we have enough buffer to hold all of these sources
106 checkBufferLength(bb.remaining(), 0, Ip4Address.BYTE_LENGTH * nsrcs); 108 checkBufferLength(bb.remaining(), 0, Ip4Address.BYTE_LENGTH * nsrcs);
107 - for (; nsrcs > 0; nsrcs--) {
108 Ip4Address src = Ip4Address.valueOf(bb.getInt()); 109 Ip4Address src = Ip4Address.valueOf(bb.getInt());
109 this.sources.add(src); 110 this.sources.add(src);
110 } 111 }
......