| Summary: | memory leak in openbsd-compat/getrrsetbyname.c, function: getrrsetbyname | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Ted Kremenek <kremenek> | ||||
| Component: | ssh | Assignee: | Damien Miller <djm> | ||||
| Status: | CLOSED FIXED | ||||||
| Severity: | normal | ||||||
| Priority: | P2 | ||||||
| Version: | 4.2p1 | ||||||
| Hardware: | Other | ||||||
| OS: | All | ||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 1047 | ||||||
| Attachments: |
|
||||||
Created attachment 1023 [details]
sync getrrsetbyname.c
This can be resolved by syncing our compat code to OpenBSD's latest version of getrrsetbyname(), which already includes fixes for these leaks.
sync applied and will be in 4.3p1, thanks for the report. Change all RESOLVED bug to CLOSED with the exception of the ones fixed post-4.4. |
In the function getrrsetbyname... memory allocated by the call to parse_dns_response (which calls calloc): /* parse result */ response = parse_dns_response(answer, length); ... appears to be leaked on all paths in this function.