mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 20:19:59 -04:00
Don't pass a NULL pointer to isc_sockaddr_format()
The 'localaddr' pointer can be NULL, which causes an assertion failure.
Use '&disp->local' instead when printing a debug log message.
(cherry picked from commit 41ca9d419e)
This commit is contained in:
parent
5102e676e7
commit
35b5ba2ff4
1 changed files with 1 additions and 1 deletions
|
|
@ -1185,7 +1185,7 @@ dns_dispatch_createtcp(dns_dispatchmgr_t *mgr, const isc_sockaddr_t *localaddr,
|
|||
if (isc_log_wouldlog(dns_lctx, 90)) {
|
||||
char addrbuf[ISC_SOCKADDR_FORMATSIZE];
|
||||
|
||||
isc_sockaddr_format(localaddr, addrbuf,
|
||||
isc_sockaddr_format(&disp->local, addrbuf,
|
||||
ISC_SOCKADDR_FORMATSIZE);
|
||||
|
||||
mgr_log(mgr, LVL(90),
|
||||
|
|
|
|||
Loading…
Reference in a new issue