Skip to content
Permalink
Browse files

rc: wrong variable used to report bitsize of rejected OVPN server DH

  • Loading branch information...
RMerl committed Sep 19, 2019
1 parent a606aba commit 5e0bd21979087cda5578d36b4439542a6577aa08
Showing with 1 addition and 1 deletion.
  1. +1 −1 release/src/router/rc/openvpn.c
@@ -1252,7 +1252,7 @@ void start_ovpn_server(int serverNum)
fclose(fp);
}
if ((valid != 0) && (valid < 1024)) {
logmessage("openvpn","WARNING: DH for server %d is too weak (%d bit, must be at least 1024 bit). Using a pre-generated 2048-bit PEM.", serverNum, i);
logmessage("openvpn","WARNING: DH for server %d is too weak (%d bit, must be at least 1024 bit). Using a pre-generated 2048-bit PEM.", serverNum, valid);
}
} else {
valid = 1024;

0 comments on commit 5e0bd21

Please sign in to comment.
You can’t perform that action at this time.