strchr (buf, ':') should be used instead of strchr (p, ':') - There is also NULL dereference if the URL does not contain '/' after the hostname with this code.
Description
Description
Revisions and Commits
Revisions and Commits
rG GnuPG | |||
rG5ab58d3001b0 dirmngr: Fix LDAP port parsing. | |||
rGa3a5a2451924 dirmngr: Fix LDAP port parsing. |
Related Objects
Related Objects
- Mentioned In
- T4233: GnuPG 2.2.11 release
Event Timeline
Comment Actions
Oh, that is really old code dating back to dirmngr-1. There is only one user I will see whether I can replace it with the generic parser we have in http.c
Comment Actions
Fixed in master and 2.2.
The fix was too obvious. So I did not replace the code and to possibly introducing other bugs. Thanks.