summaryrefslogtreecommitdiff
path: root/print-atalk.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-09-16 00:12:57 -0700
committerGuy Harris <guy@alum.mit.edu>2018-09-16 00:12:57 -0700
commit000261d112765fdfda31942d71fa536a145f2112 (patch)
treefb3c51704fd1e1661f5b77d06782d81eb087aa54 /print-atalk.c
parent8896cbdc548f608e84998cc30032a2069869675a (diff)
downloadtcpdump-000261d112765fdfda31942d71fa536a145f2112.tar.gz
That wasn't correct.
Diffstat (limited to 'print-atalk.c')
-rw-r--r--print-atalk.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/print-atalk.c b/print-atalk.c
index 837a0160..8faa29f0 100644
--- a/print-atalk.c
+++ b/print-atalk.c
@@ -630,16 +630,15 @@ ataddr_string(netdissect_options *ndo,
fclose(fp);
}
}
-
- /*
- * Now try to look up the address in the table.
- */
- for (tp = &hnametable[i & (HASHNAMESIZE-1)]; tp->nxt;
- tp = tp->nxt)
- if (tp->addr == i)
- return (tp->name);
}
+ /*
+ * Now try to look up the address in the table.
+ */
+ for (tp = &hnametable[i & (HASHNAMESIZE-1)]; tp->nxt; tp = tp->nxt)
+ if (tp->addr == i)
+ return (tp->name);
+
/* didn't have the node name -- see if we've got the net name */
i |= 255;
for (tp2 = &hnametable[i & (HASHNAMESIZE-1)]; tp2->nxt; tp2 = tp2->nxt)