diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-09-16 00:12:57 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-09-16 00:12:57 -0700 |
commit | 000261d112765fdfda31942d71fa536a145f2112 (patch) | |
tree | fb3c51704fd1e1661f5b77d06782d81eb087aa54 /print-atalk.c | |
parent | 8896cbdc548f608e84998cc30032a2069869675a (diff) | |
download | tcpdump-000261d112765fdfda31942d71fa536a145f2112.tar.gz |
That wasn't correct.
Diffstat (limited to 'print-atalk.c')
-rw-r--r-- | print-atalk.c | 15 |
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) |