]> The Tcpdump Group git mirrors - tcpdump/commitdiff
OLSR: Fix a goto before ND_PRINT
authorFrancois-Xavier Le Bail <[email protected]>
Sun, 17 Jan 2021 10:30:26 +0000 (11:30 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Sun, 17 Jan 2021 10:30:26 +0000 (11:30 +0100)
print-olsr.c

index 511233fe421baae85063039e6cf3c0998484d65e..ba1a9f5a65cb605f9af71597e279bc3a33147775 100644 (file)
@@ -482,8 +482,8 @@ olsr_print(netdissect_options *ndo,
         case OLSR_TC_MSG:
         case OLSR_TC_LQ_MSG:
             if (msg_tlen < sizeof(struct olsr_tc)) {
-                goto invalid;
                 ND_PRINT(" (message length < %zu)", sizeof(struct olsr_tc));
+                goto invalid;
             }
             ND_TCHECK_LEN(msg_data, sizeof(struct olsr_tc));