From 9a471bd81cc7a227eaa38c781a4a3e95e4ef333f Mon Sep 17 00:00:00 2001 From: Cary R Date: Fri, 31 Oct 2014 20:07:22 -0700 Subject: [PATCH] Don't crash if there are problems elaborating an enumeration. --- netenum.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/netenum.cc b/netenum.cc index 4294e323b..cab73a55c 100644 --- a/netenum.cc +++ b/netenum.cc @@ -89,6 +89,9 @@ bool netenum_t::insert_name(size_t name_idx, perm_string name, const verinum&val void netenum_t::insert_name_close(void) { for (size_t idx = 0 ; idx < names_.size() ; idx += 1) { + // If we failed to elaborate the name then skip this step. + if (names_[idx].nil()) continue; + netenum_t::iterator cur = names_map_.find(names_[idx]); vectorstr (cur->second.len() + 1);