openvpnctrl: Fix SEGV in sprintf() call.

This commit is contained in:
Michael Tremer
2011-07-05 12:45:51 +02:00
parent 7d653d51f8
commit 1129c37a95

View File

@@ -360,7 +360,7 @@ void setFirewallRules(void) {
setChainRules(OVPNORANGE, orangeif, protocol, dport);
// set firewall rules for n2n connections
char *port;
char port[STRING_SIZE];
while (conn != NULL) {
sprintf(port, "%d", conn->port);
setChainRules(OVPNRED, redif, conn->proto, port);