This is a new thread with version 2 of the patch; the first submission included the wrong .patch file and was withdrawn.
The attached patch causes an error if an option has extra parameters; previously they were ignored (ticket #557 at https://community.openvpn.net/openvpn/ticket/557). This feature was discussed on the openvpn-devel mailing list ( http://thread.gmane.org/gmane.network.openvpn.devel/9599). The patch is for the master branch only -- the consensus of the mailing list discussion was that the patch should not be included in the 2.3 branch. The (modified) message "Unrecognized option or missing or extra parameter(s)" is used except for a few options: * The --help option: An extra parameter for --help generates a specific error message after showing the syntax message. This is done to help a user who tries "--help tls-cipher" or similar, hoping to get more information about the "tls-cipher" option. * The --dhcp-option option: It has its own similar message, into which " or extra" has been inserted. * Ten options such as --up that accept a command (instead of a path) already detect extra parameters and generate specific error messages that mention double-quoting commands which contain imbedded spaces.
extra-parameters-v2.patch
Description: Binary data