Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144533585
D49508.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
762 B
Referenced Files
None
Subscribers
None
D49508.diff
View Options
diff --git a/contrib/blocklist/bin/blacklistd.c b/contrib/blocklist/bin/blacklistd.c
--- a/contrib/blocklist/bin/blacklistd.c
+++ b/contrib/blocklist/bin/blacklistd.c
@@ -185,8 +185,10 @@
return;
}
- if (getremoteaddress(bi, &rss, &rsl) == -1)
+ if (getremoteaddress(bi, &rss, &rsl) == -1) {
+ dbi.last = -1;
goto out;
+ }
if (debug) {
sockaddr_snprintf(rbuf, sizeof(rbuf), "%a:%p", (void *)&rss);
@@ -201,7 +203,6 @@
goto out;
}
-
if (state_get(state, &c, &dbi) == -1)
goto out;
@@ -265,7 +266,7 @@
out:
close(bi->bi_fd);
- if (debug) {
+ if (debug && dbi.last != -1) {
char b1[128], b2[128];
(*lfun)(LOG_DEBUG, "%s: final db state for %s: count=%d/%d "
"last=%s now=%s", __func__, rbuf, dbi.count, c.c_nfail,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 10, 7:01 AM (16 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28616756
Default Alt Text
D49508.diff (762 B)
Attached To
Mode
D49508: blacklist: Fix use of uninitialized variable
Attached
Detach File
Event Timeline
Log In to Comment