cherrypicking already suggested pr from https://github.com/jhtran/openvpn/commit/33d6a44485552bc9e1d40558da2956ae1ef89958