Index: /src/router/httpd/validate/webs.c
===================================================================
--- /src/router/httpd/validate/webs.c	(revision 14240)
+++ /src/router/httpd/validate/webs.c	(revision 14241)
@@ -783,5 +783,5 @@
 	sprintf(n, "%s_authmode", prefix);
 	char *authmode = websGetVar(wp, n, "");
-	if (strlen(tx) == 0) {
+	if (strlen(authmode) == 0) {
 		nvram_set(n, "open");
 	} else {
