chiark
/
gitweb
/
~mdw
/
adns
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
+ Bugfixes:
[adns]
/
src
/
event.c
diff --git
a/src/event.c
b/src/event.c
index 29d50a0cf6e8817476d4a300f400e1a99e85e1b0..684759a727f2cfa5c2e390978950ec49f6b7ac21 100644
(file)
--- a/
src/event.c
+++ b/
src/event.c
@@
-395,7
+395,8
@@
int adns_processreadable(adns_state ads, int fd, const struct timeval *now) {
}
if (udpaddrlen != sizeof(udpaddr)) {
adns__diag(ads,-1,0,"datagram received with wrong address length %d"
}
if (udpaddrlen != sizeof(udpaddr)) {
adns__diag(ads,-1,0,"datagram received with wrong address length %d"
- " (expected %d)", udpaddrlen,sizeof(udpaddr));
+ " (expected %lu)", udpaddrlen,
+ (unsigned long)sizeof(udpaddr));
continue;
}
if (udpaddr.sin_family != AF_INET) {
continue;
}
if (udpaddr.sin_family != AF_INET) {