X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/577621026df8d4a33a34d4e125f9ec964fc0e53c..a7a76012a129ffefb64f102948db63fbc715e45e:/print-pptp.c?ds=sidebyside diff --git a/print-pptp.c b/print-pptp.c index 779011a2..3d691bc0 100644 --- a/print-pptp.c +++ b/print-pptp.c @@ -338,7 +338,7 @@ pptp_err_code_print(netdissect_options *ndo, { ND_PRINT((ndo, " ERR_CODE(%u", *err_code)); if (ndo->ndo_vflag) { - ND_PRINT((ndo, ":%s", tok2str(pptp_errcode_str, "?", *err_code))); + ND_PRINT((ndo, ":%s", tok2str(pptp_errcode_str, "?", EXTRACT_8BITS(err_code)))); } ND_PRINT((ndo, ")")); } @@ -493,7 +493,7 @@ pptp_result_code_print(netdissect_options *ndo, ctrl_msg_type == PPTP_CTRL_MSG_TYPE_CDN ? pptp_cdn_str : NULL; /* assertion error */ if (dict != NULL) - ND_PRINT((ndo, ":%s", tok2str(dict, "?", *result_code))); + ND_PRINT((ndo, ":%s", tok2str(dict, "?", EXTRACT_8BITS(result_code)))); } ND_PRINT((ndo, ")")); }