]> The Tcpdump Group git mirrors - tcpdump/commitdiff
DHCP: Fix typos in some error messages
authorFrancois-Xavier Le Bail <[email protected]>
Wed, 19 Mar 2025 13:42:26 +0000 (14:42 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Wed, 19 Mar 2025 13:51:11 +0000 (14:51 +0100)
(cherry picked from commit a691f1a961ee78b59bcd06cf4f4abf9d2120273c)

print-bootp.c

index 9af5e2ab36d549be2c575dc9c2174c3419387cea..747a9836a423d0e45fcf2922e587a897832db417 100644 (file)
@@ -778,7 +778,7 @@ rfc1048_print(netdissect_options *ndo,
                        case TAG_NETBIOS_NODE:
                                /* this option should be at least 1 byte long */
                                if (len < 1) {
                        case TAG_NETBIOS_NODE:
                                /* this option should be at least 1 byte long */
                                if (len < 1) {
-                                       ND_PRINT("[ERROR: length < 1 bytes]");
+                                       ND_PRINT("[ERROR: length < 1 byte]");
                                        break;
                                }
                                tag = GET_U_1(bp);
                                        break;
                                }
                                tag = GET_U_1(bp);
@@ -790,7 +790,7 @@ rfc1048_print(netdissect_options *ndo,
                        case TAG_OPT_OVERLOAD:
                                /* this option should be at least 1 byte long */
                                if (len < 1) {
                        case TAG_OPT_OVERLOAD:
                                /* this option should be at least 1 byte long */
                                if (len < 1) {
-                                       ND_PRINT("[ERROR: length < 1 bytes]");
+                                       ND_PRINT("[ERROR: length < 1 byte]");
                                        break;
                                }
                                tag = GET_U_1(bp);
                                        break;
                                }
                                tag = GET_U_1(bp);
@@ -835,7 +835,7 @@ rfc1048_print(netdissect_options *ndo,
 
                                /* this option should be at least 1 byte long */
                                if (len < 1) {
 
                                /* this option should be at least 1 byte long */
                                if (len < 1) {
-                                       ND_PRINT("[ERROR: length < 1 bytes]");
+                                       ND_PRINT("[ERROR: length < 1 byte]");
                                        break;
                                }
                                type = GET_U_1(bp);
                                        break;
                                }
                                type = GET_U_1(bp);