summaryrefslogtreecommitdiffstats
path: root/src/MuxElements.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/MuxElements.cpp')
-rw-r--r--src/MuxElements.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/MuxElements.cpp b/src/MuxElements.cpp
index ef04507..e07a49d 100644
--- a/src/MuxElements.cpp
+++ b/src/MuxElements.cpp
@@ -666,6 +666,15 @@ bool dabEnsemble::validate_linkage_sets()
keyserviceuid.c_str(), ls->lsn);
return false;
}
+
+ // need to add key service to num_ids
+ const size_t num_ids = 1 + ls->id_list.size();
+ if (num_ids > 0x0F) {
+ etiLog.log(error,
+ "Too many links for linkage set 0x%04x",
+ ls->lsn);
+ return false;
+ }
}
return true;