]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-krb.c
Add CAP_FCNTL and use cap_fcntls_limit().
[tcpdump] / print-krb.c
index e726cee9981175b1e81013c793c7139fe2eda7eb..2eebfa69bb83d0c254871ee7186187d0dccf11b2 100644 (file)
@@ -60,8 +60,8 @@ static void krb4_print(netdissect_options *, const u_char *);
 #define KERB_ERR_NULL_KEY                      10
 
 struct krb {
-       u_int8_t pvno;          /* Protocol Version */
-       u_int8_t type;          /* Type+B */
+       uint8_t pvno;           /* Protocol Version */
+       uint8_t type;           /* Type+B */
 };
 
 static const struct tok type2str[] = {
@@ -137,7 +137,7 @@ krb4_print_hdr(netdissect_options *ndo,
        return (cp);
 
 trunc:
-       ND_PRINT((ndo, tstr));
+       ND_PRINT((ndo, "%s", tstr));
        return (NULL);
 
 #undef PRINT
@@ -159,7 +159,7 @@ krb4_print(netdissect_options *ndo,
        kp = (struct krb *)cp;
 
        if ((&kp->type) >= ndo->ndo_snapend) {
-               ND_PRINT((ndo, tstr));
+               ND_PRINT((ndo, "%s", tstr));
                return;
        }
 
@@ -218,7 +218,7 @@ krb4_print(netdissect_options *ndo,
 
        return;
 trunc:
-       ND_PRINT((ndo, tstr));
+       ND_PRINT((ndo, "%s", tstr));
 }
 
 void
@@ -230,7 +230,7 @@ krb_print(netdissect_options *ndo,
        kp = (struct krb *)dat;
 
        if (dat >= ndo->ndo_snapend) {
-               ND_PRINT((ndo, tstr));
+               ND_PRINT((ndo, "%s", tstr));
                return;
        }