Commit be4008a
committed
CDRIVER-4699 fix leak on repeated attempts to authenticate (#1364)
* CDRIVER-4699 add regression test
* Call `_mongoc_scram_destroy` when resetting auth state
* only call if `MONGOC_ENABLE_CRYPTO` is defined
`_mongoc_scram_destroy` is conditionally defined. If `MONGOC_ENABLE_CRYPTO` is not defined, scram auth is not supported.1 parent 48d2577 commit be4008a
File tree
2 files changed
+41
-1
lines changed- src/libmongoc
- src/mongoc
- tests
2 files changed
+41
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1102 | 1102 | | |
1103 | 1103 | | |
1104 | 1104 | | |
1105 | | - | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
1106 | 1109 | | |
1107 | 1110 | | |
1108 | 1111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4225 | 4225 | | |
4226 | 4226 | | |
4227 | 4227 | | |
| 4228 | + | |
| 4229 | + | |
| 4230 | + | |
| 4231 | + | |
| 4232 | + | |
| 4233 | + | |
| 4234 | + | |
| 4235 | + | |
| 4236 | + | |
| 4237 | + | |
| 4238 | + | |
| 4239 | + | |
| 4240 | + | |
| 4241 | + | |
| 4242 | + | |
| 4243 | + | |
| 4244 | + | |
| 4245 | + | |
| 4246 | + | |
| 4247 | + | |
| 4248 | + | |
| 4249 | + | |
| 4250 | + | |
| 4251 | + | |
| 4252 | + | |
| 4253 | + | |
| 4254 | + | |
| 4255 | + | |
| 4256 | + | |
| 4257 | + | |
| 4258 | + | |
| 4259 | + | |
| 4260 | + | |
| 4261 | + | |
| 4262 | + | |
| 4263 | + | |
4228 | 4264 | | |
4229 | 4265 | | |
4230 | 4266 | | |
| |||
4538 | 4574 | | |
4539 | 4575 | | |
4540 | 4576 | | |
| 4577 | + | |
4541 | 4578 | | |
0 commit comments