| commit | fd95de87beacf16af4dd2b8c3c1401374134cffa | [log] [tgz] |
|---|---|---|
| author | Francois-Xavier Le Bail <fx.lebail@yahoo.com> | Tue Apr 28 14:33:33 2015 +0200 |
| committer | Francois-Xavier Le Bail <fx.lebail@yahoo.com> | Tue Apr 28 14:36:01 2015 +0200 |
| tree | f9614d26d6c78a8e7f4b2e735c29f012ba15d421 | |
| parent | 79bfaef492707e42eafa532625cb5f3698c3bba4 [diff] |
MEDSA: Address a Coverity warning
diff --git a/print-medsa.c b/print-medsa.c index 29603c8..dbdf356 100644 --- a/print-medsa.c +++ b/print-medsa.c
@@ -168,7 +168,11 @@ ether_type), ether_type)); - ethertype_print(ndo, ether_type, bp, length, caplen); + if (ethertype_print(ndo, ether_type, bp, length, caplen) == 0) { + /* ether_type not known, print raw packet */ + if (!ndo->ndo_suppress_default_print) + ND_DEFAULTPRINT(bp, caplen); + } } return; trunc: