Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Raj-LNU
Copy link

@Raj-LNU Raj-LNU commented Jan 31, 2025

Problem: When host is expecting ssl connection but sslmode is set to disable, ssl returns null causing segmentation fault.

Hostssl                                        sslmode

0 : Preferred UnSecured session		   |	disable	|	crash(SEGV)
2 : Preferred Secured session		   |	disable |	crash(SEGV)
3 : Only Secured session	           |    disable	|	Crash(SEGV)

Host

2 : Preferred Secured session		   |	disable |	Crash(SEGV)
3 : Only Secured session	           |	disable	|	Crash(SEGV)

Solution: Analyzing the code, it would seem that sslmode disable option does not play a significant role in the current implementation. For unsecured connection, sslmode are not considered and for all the cases of secured connection we are getting segv where we pass sslmode disable. hence, removed the disable option as it wont have any impact on the established behavior of the product.

nzgo_testing1.txt

@Raj-LNU Raj-LNU marked this pull request as draft February 17, 2025 11:36
Raj-LNU added 2 commits February 17, 2025 03:39
@Raj-LNU Raj-LNU marked this pull request as ready for review February 18, 2025 08:33
@abhishekjog abhishekjog merged commit 339c603 into IBM:master Feb 18, 2025
0 of 2 checks passed
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