diff options
-rw-r--r-- | src/system.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/system.cc b/src/system.cc index 47ea436..d7d0f71 100644 --- a/src/system.cc +++ b/src/system.cc @@ -182,6 +182,12 @@ void System::receive(void) break; case META2: rxExpect = DATA_FIRSTBLOCK; + /* + * skip empty patterns (would bork because of remaining_bytes-- + * otherwise + */ + if (remaining_bytes == 0) + rxExpect = NEXT_BLOCK; break; case DATA_FIRSTBLOCK: if (remaining_bytes == 0) { |