summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_flashpolicyd.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/m_flashpolicyd.cpp b/src/modules/m_flashpolicyd.cpp
index 95b82848f..46fd33e61 100644
--- a/src/modules/m_flashpolicyd.cpp
+++ b/src/modules/m_flashpolicyd.cpp
@@ -128,6 +128,13 @@ class ModuleFlashPD : public Module
to_ports.append(ConvToStr(ls->bind_port)).push_back(',');
}
+
+ if (to_ports.empty())
+ {
+ policy_reply.clear();
+ return;
+ }
+
to_ports.erase(to_ports.size() - 1);
policy_reply =