From: Guy Harris Date: Sun, 16 Sep 2018 07:12:57 +0000 (-0700) Subject: That wasn't correct. X-Git-Tag: tcpdump-4.99-bp~1005 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/000261d112765fdfda31942d71fa536a145f2112 That wasn't correct. --- 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)