]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-pptp.c
Use more the EXTRACT_8BITS() macro to fetch a one-byte value (17/n)
[tcpdump] / print-pptp.c
index 779011a2746c8dcad7668e043696180211891d83..3d691bc02afe8336aca38ba45b0f6e57268d7a1c 100644 (file)
@@ -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, ")"));
 }