]> The Tcpdump Group git mirrors - tcpdump/commitdiff
That wasn't correct.
authorGuy Harris <[email protected]>
Sun, 16 Sep 2018 07:12:57 +0000 (00:12 -0700)
committerGuy Harris <[email protected]>
Sun, 16 Sep 2018 07:12:57 +0000 (00:12 -0700)
print-atalk.c

index 837a0160a44b10556c789b1c1f9bfdd850e40dbc..8faa29f0ce9cefeeb43985f43e970fcdd7f86362 100644 (file)
@@ -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)