mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
openvpnctrl: Fix SEGV in sprintf() call.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user