commit | 2a59e0eec86eb07c3b1517b926c41b3b5bad9fa9 | [log] [tgz] |
---|---|---|
author | Ilya Moiseenko <iliamo@ucla.edu> | Fri Oct 28 13:05:32 2011 -0700 |
committer | Ilya Moiseenko <iliamo@ucla.edu> | Fri Oct 28 13:40:13 2011 -0700 |
tree | ef9da756160ae3c1d241d8d9ddb02e835ed97529 | |
parent | aa17c8e023156b16a99d51b384909a1abe7bcb5b [diff] [blame] |
dummy commit
diff --git a/helper/ccnx-header-helper.cc b/helper/ccnx-header-helper.cc index 1c7a806..8fcd9d7 100644 --- a/helper/ccnx-header-helper.cc +++ b/helper/ccnx-header-helper.cc
@@ -40,6 +40,7 @@ { uint8_t type[2]; uint32_t read=packet->CopyData (type,2); + if (read!=2) throw CcnxUnknownHeaderException(); if (type[0] == INTEREST_BYTE0 && type[1] == INTEREST_BYTE1)