mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
Fix memory leak in connection_ap_handshake_rewrite_and_attach()
Spotted by asn. #14259. Bugfix on 368eb6a97
in 0.2.0.1-alpha.
This commit is contained in:
parent
b72acd725a
commit
54e4aaf52c
6
changes/bug14259
Normal file
6
changes/bug14259
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
o Minor bugfixes (client):
|
||||||
|
- Avoid a small memory leak when we find a cached answer for a reverse
|
||||||
|
DNS lookup in a client-side DNS cache. (Remember, client-side DNS
|
||||||
|
caching is off by default, and is not recommended.) Fixes bug 14259;
|
||||||
|
bugfix on 0.2.0.1-alpha.
|
||||||
|
|
@ -1001,6 +1001,7 @@ connection_ap_handshake_rewrite(entry_connection_t *conn,
|
|||||||
strlen(result), (uint8_t*)result,
|
strlen(result), (uint8_t*)result,
|
||||||
-1,
|
-1,
|
||||||
out->map_expires);
|
out->map_expires);
|
||||||
|
tor_free(result);
|
||||||
out->end_reason = END_STREAM_REASON_DONE |
|
out->end_reason = END_STREAM_REASON_DONE |
|
||||||
END_STREAM_REASON_FLAG_ALREADY_SOCKS_REPLIED;
|
END_STREAM_REASON_FLAG_ALREADY_SOCKS_REPLIED;
|
||||||
out->should_close = 1;
|
out->should_close = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user