public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] OpenVPN: Prevent internal server error cause of bad header wrapper
@ 2018-06-21  9:12 Erik Kapfer
  2018-07-02 12:26 ` ummeegge
  0 siblings, 1 reply; 8+ messages in thread
From: Erik Kapfer @ 2018-06-21  9:12 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 842 bytes --]

This fixes #11772 .

If the X509 are deleted, the openvpnctrl output generates a bad header wrapper error from the CGI
which causes an internal server error. The redirection of the openvpnctrl output fixes this.

Signed-off-by: Erik Kapfer <erik.kapfer(a)ipfire.org>
---
 html/cgi-bin/ovpnmain.cgi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi
index 4bc3473..5cd19a0 100644
--- a/html/cgi-bin/ovpnmain.cgi
+++ b/html/cgi-bin/ovpnmain.cgi
@@ -1181,7 +1181,7 @@ SETTINGS_ERROR:
 	    delete $confighash{$cgiparams{'$key'}};
 	}
 
-	system ("/usr/local/bin/openvpnctrl -drrd $name");
+	system ("/usr/local/bin/openvpnctrl -drrd $name &>/dev/null");
     }
     while ($file = glob("${General::swroot}/ovpn/ca/*")) {
 	unlink $file;
-- 
2.7.4


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-07-04 22:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-21  9:12 [PATCH] OpenVPN: Prevent internal server error cause of bad header wrapper Erik Kapfer
2018-07-02 12:26 ` ummeegge
2018-07-03  9:52   ` Michael Tremer
2018-07-03 12:18     ` ummeegge
2018-07-03 14:31       ` Michael Tremer
2018-07-03 17:40         ` ummeegge
2018-07-04 13:59           ` Michael Tremer
2018-07-04 22:59             ` ummeegge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox