summaryrefslogtreecommitdiff
path: root/cesar/bsu/beacon/src/beacon.c
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/bsu/beacon/src/beacon.c')
-rw-r--r--cesar/bsu/beacon/src/beacon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cesar/bsu/beacon/src/beacon.c b/cesar/bsu/beacon/src/beacon.c
index 67ebf18342..57ffcc9966 100644
--- a/cesar/bsu/beacon/src/beacon.c
+++ b/cesar/bsu/beacon/src/beacon.c
@@ -922,7 +922,8 @@ bsu_beacon_read (pb_beacon_t *pbbeacon, bsu_beacon_t *beacon)
for (nbe = 0; ok && nbe < beacon->bmis.nbe; nbe++)
{
ok = bsu_beacon_read_bmi_header (&stream, &header, &length)
- && header >= header_prev;
+ && header >= header_prev
+ && length;
if (ok)
{
switch (header)