Commit 7487ad1
authored
Use existing session context if new is actually NULL (#2946)
SSL_set_SSL_CTX() doesn't currently tolerate the ctx argument being NULL (it would just crash in some cases). I was pondering handling this by just explicitly error out if it was NULL. But I realised upstream OpenSSL has a different behaviour: falls back to existing session context from ssl.
This is unnecessary complexity, but in the name of interoperability I did that instead of flipping to an error state.1 parent cb37cb0 commit 7487ad1
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2856 | 2856 | | |
2857 | 2857 | | |
2858 | 2858 | | |
2859 | | - | |
| 2859 | + | |
| 2860 | + | |
2860 | 2861 | | |
2861 | 2862 | | |
2862 | 2863 | | |
| |||
0 commit comments