summaryrefslogtreecommitdiff
path: root/src/tcpto.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tcpto.c')
-rw-r--r--src/tcpto.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tcpto.c b/src/tcpto.c
index 77e565c..243d4ba 100644
--- a/src/tcpto.c
+++ b/src/tcpto.c
@@ -103,9 +103,9 @@ void tcpto_err(struct ip_mx *ix, int flagerr)
for (i = 0; i < n; ++i) {
if (af == record[0] && byte_equal(ip->d, af == AF_INET ? 4 : 16, record + 16)) {
- if (!flagerr)
+ if (!flagerr) {
record[4] = 0;
- else {
+ } else {
lastwhen = (unsigned long)(unsigned char)record[11];
lastwhen = (lastwhen << 8) + (unsigned long)(unsigned char)record[10];
lastwhen = (lastwhen << 8) + (unsigned long)(unsigned char)record[9];
@@ -169,9 +169,9 @@ void tcpto_err(struct ip_mx *ix, int flagerr)
if (i >= 0) {
record = tcpto_buf + (i << 5);
record[0] = af;
- if (af == AF_INET6)
+ if (af == AF_INET6) {
byte_copy(record + 16, 16, ip->d);
- else {
+ } else {
byte_copy(record + 16, 4, ip->d);
byte_copy(record + 20, 12, "............");
}