projects
/
dnsmasq.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d53d95
)
Fix namebuff overwrite leading to wrong log after socket bind warning.
author
Simon Kelley
<simon@thekelleys.org.uk>
Fri, 9 Sep 2022 14:56:54 +0000
(15:56 +0100)
committer
Simon Kelley
<simon@thekelleys.org.uk>
Fri, 9 Sep 2022 14:57:39 +0000
(15:57 +0100)
src/forward.c
patch
|
blob
|
history
diff --git
a/src/forward.c
b/src/forward.c
index
aa9ace0
..
9d1f005
100644
(file)
--- a/
src/forward.c
+++ b/
src/forward.c
@@
-2439,12
+2439,12
@@
static int random_sock(struct server *s)
return fd;
if (s->interface[0] == 0)
- (void)prettyprint_addr(&s->source_addr, daemon->
name
buff);
+ (void)prettyprint_addr(&s->source_addr, daemon->
addr
buff);
else
- s
trcpy(daemon->namebuff, s->interface
);
+ s
afe_strncpy(daemon->addrbuff, s->interface, ADDRSTRLEN
);
my_syslog(LOG_ERR, _("failed to bind server socket to %s: %s"),
- daemon->
name
buff, strerror(errno));
+ daemon->
addr
buff, strerror(errno));
close(fd);
}