Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erroring out on invalid port during the creation of a SSLEngine #224

Merged
merged 2 commits into from
Sep 30, 2024

Conversation

gasbytes
Copy link
Contributor

No description provided.

@gasbytes gasbytes requested a review from cconlon September 25, 2024 17:44
@@ -165,8 +165,7 @@ protected WolfSSLEngineHelper(WolfSSLSession ssl, WolfSSLAuthStore store,
WolfSSLParameters params, int port, InetAddress peerAddr)
throws WolfSSLException {

if (params == null || ssl == null || store == null ||
peerAddr == null) {
if (params == null || ssl == null || store == null || peerAddr == null || port < 0) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where possible, we still try to conform to our 80-character max line length in the Java wrappers. Can you wrap this line around? Looks just a little too long.

@gasbytes gasbytes requested a review from cconlon September 26, 2024 09:04
@cconlon cconlon merged commit cfbc118 into wolfSSL:master Sep 30, 2024
36 checks passed
@gasbytes gasbytes deleted the patch-nullhostnamefix branch October 31, 2024 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants