diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-04-08 11:37:08 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-04-08 11:37:08 -0700 |
commit | 52b57d962db2403b1afd79e8a0bd48eb0e91f2d2 (patch) | |
tree | bb75dc483972fa5f438b5611322f436b478ee0be /print-rpki-rtr.c | |
parent | 7a35ea87c1e5142eb25e30eaf9cefdc1507e0997 (diff) | |
download | tcpdump-52b57d962db2403b1afd79e8a0bd48eb0e91f2d2.tar.gz |
We're not copying the string to buf, so print the string, not buf.
Get rid of the now-unused buf array while we're at it.
Diffstat (limited to 'print-rpki-rtr.c')
-rw-r--r-- | print-rpki-rtr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/print-rpki-rtr.c b/print-rpki-rtr.c index e009af54..c9c4e0ab 100644 --- a/print-rpki-rtr.c +++ b/print-rpki-rtr.c @@ -250,7 +250,6 @@ rpki_rtr_pdu_print (netdissect_options *ndo, const u_char *tptr, u_int indent) { rpki_rtr_pdu_error_report *pdu; u_int encapsulated_pdu_length, text_length, tlen, error_code; - u_char buf[80]; pdu = (rpki_rtr_pdu_error_report *)tptr; encapsulated_pdu_length = EXTRACT_32BITS(pdu->encapsulated_pdu_length); @@ -290,7 +289,7 @@ rpki_rtr_pdu_print (netdissect_options *ndo, const u_char *tptr, u_int indent) ND_TCHECK2(*tptr, text_length); if (text_length && (text_length <= tlen )) { ND_PRINT((ndo, "%sError text: ", indent_string(indent+2))); - fn_printn(ndo, buf, text_length, ndo->ndo_snapend); + fn_printn(ndo, tptr, text_length, ndo->ndo_snapend); } } break; |