From 75d19548190cad161de50e87cbaad9b4d9ce765a Mon Sep 17 00:00:00 2001
From: ree <>
Date: Sun, 17 Jul 2011 21:29:19 +0000
Subject: [PATCH] Fix for when module section is missing from ctrl/modopts.ini.

---
 exec/flashpolicyserver.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/exec/flashpolicyserver.js b/exec/flashpolicyserver.js
index 9ff0ce3229..19b3cbdce3 100644
--- a/exec/flashpolicyserver.js
+++ b/exec/flashpolicyserver.js
@@ -66,7 +66,7 @@ if (InString.indexOf(ValidRequest) === -1) {
 
 function GetToPorts() {
 	var Ports = GetTerminalServerPorts();
-	if (options.extra_ports !== undefined) {
+	if (options && (options.extra_ports !== undefined)) {
 		var ExtraPorts = options.extra_ports.replace(/\s/ig, ''); // Flash doesn't seem to like spaces in the to-ports
 		if (ExtraPorts !== "") {
 			Ports += "," + ExtraPorts
-- 
GitLab