]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix spelling typos in comments and code 12089/head
authorMichal Nowak <mnowak@isc.org>
Sun, 24 May 2026 07:00:21 +0000 (07:00 +0000)
committerMichal Nowak <mnowak@isc.org>
Mon, 1 Jun 2026 14:58:16 +0000 (16:58 +0200)
Assisted-by: Mistral Vibe:mistral-medium-3.5
Assisted-by: Claude:claude-opus-4-7
42 files changed:
bin/dnssec/dnssec-keygen.c
bin/dnssec/dnssec-signzone.c
bin/named/server.c
bin/plugins/synthrecord.c
lib/dns/catz.c
lib/dns/deleg.c
lib/dns/dns64.c
lib/dns/dnssec.c
lib/dns/include/dns/adb.h
lib/dns/include/dns/compress.h
lib/dns/include/dns/db.h
lib/dns/include/dns/dispatch.h
lib/dns/include/dns/nametree.h
lib/dns/include/dns/qp.h
lib/dns/include/dns/rdatalist.h
lib/dns/include/dns/sdlz.h
lib/dns/include/dns/ssu.h
lib/dns/include/dns/tsig.h
lib/dns/include/dns/zone.h
lib/dns/include/dns/zoneproperties.h
lib/dns/include/dst/dst.h
lib/dns/name.c
lib/dns/qp.c
lib/dns/qp_p.h
lib/dns/qpcache.c
lib/dns/qpzone.c
lib/dns/rdata/in_1/a_1.c
lib/dns/resolver.c
lib/dns/rpz.c
lib/dns/rrl.c
lib/dns/unreachcache.c
lib/isc/histo.c
lib/isc/ht.c
lib/isc/include/isc/hex.h
lib/isc/include/isc/hmac.h
lib/isc/include/isc/stdio.h
lib/isc/include/isc/tls.h
lib/isc/netmgr/http.c
lib/isc/netmgr/tcp.c
lib/isc/picohttpparser.c
lib/isccfg/check.c
lib/isccfg/include/isccfg/aclconf.h

index 683473815fe27d9ef6fdc20335fce4d88d6670ef..4abf054823f667d2d3214e8d35c7670e4efe9aba 100644 (file)
@@ -61,7 +61,7 @@
 #include "dnssectool.h"
 
 /*
- * These are are set here for backwards compatibility.  They are
+ * These are set here for backwards compatibility.  They are
  * raised to 2048 in FIPS mode.
  */
 static int min_rsa = 1024;
index 33fc35ac01936131722b64055db24bf583f016e9..71a89991e086f18e9a8618f0a2b53d64e6d56419 100644 (file)
@@ -2740,7 +2740,7 @@ findkeys:
        dns_diff_init(isc_g_mctx, &diff);
 
        /*
-        * Update keylist with information from from the key repository.
+        * Update keylist with information from the key repository.
         */
        dns_dnssec_updatekeys(&keylist, &matchkeys, NULL, gorigin, keyttl,
                              &diff, isc_g_mctx, report);
index 906e108b9a4f77ce4cf618801a80dd4c49a6aed0..ef02634b6b77cf8ab211cf5480473efb3a76e6cc 100644 (file)
@@ -8788,7 +8788,7 @@ cleanup_portsets:
 cleanup_tls:
        /*
         * Detach the TLS client context (whether the one created at the
-        * begining of this function, or the previous running one)
+        * beginning of this function, or the previous running one)
         */
        isc_tlsctx_cache_detach(&tlsctx_client_cache);
 
index fc2f79450bbdce39e60b4c46f28fa09318b47415..4f7bff17b40fdff0ad82a51914fdd41eb522140f 100644 (file)
@@ -73,7 +73,7 @@ synthrecord_reverseanswer(synthrecord_t *inst, isc_netaddr_t *na,
        RETERR(isc_netaddr_totext(na, &addrb));
 
        /*
-        * IDN compatibility, as an IPv6 begining or ending with `::` will be
+        * IDN compatibility, as an IPv6 beginning or ending with `::` will be
         * converted into `--` and RFC5890 section 2.3.1 states that an IDN
         * label can't start or end with an hyphen.
         */
index 73997fb521089613b3ab58d72ecc28b2cac0a797..b731432678b79dd2391975720534bcfa4f868705 100644 (file)
@@ -704,7 +704,7 @@ dns__catz_zones_merge(dns_catz_zone_t *catz, dns_catz_zone_t *newcatz) {
        }
        RUNTIME_CHECK(result == ISC_R_NOMORE);
        isc_ht_iter_destroy(&iter2);
-       /* At this moment catz->entries has to be be empty. */
+       /* At this moment catz->entries has to be empty. */
        INSIST(isc_ht_count(catz->entries) == 0);
        isc_ht_destroy(&catz->entries);
 
index 69e7b1720bdd82d9b9d076bafa8ad9963847bdea..0566f2fe062f531c2e8ca10d6968c86b60336713 100644 (file)
@@ -648,8 +648,8 @@ dns_delegset_insert(dns_delegdb_t *delegdb, const dns_name_t *zonecut,
        if (result == ISC_R_SUCCESS) {
                /*
                 * A node at the same zonecut exists, and it is expired. Ignore
-                * the return value, in case the overriden node would be removed
-                * in meantime by someone else.
+                * the return value, in case the overridden node would be
+                * removed in meantime by someone else.
                 */
                (void)dns_qp_deletename(qp, zonecut, DNS_DBNAMESPACE_NORMAL,
                                        NULL, NULL);
index 92c4399998907dc806f2e234c0223e36e77b1598..95df951c9095a197f0d8a7143fb1f7fd666f341f 100644 (file)
@@ -304,7 +304,7 @@ done:
 }
 
 /*
- * Posible mapping of IPV4ONLY.ARPA A records into AAAA records
+ * Possible mapping of IPV4ONLY.ARPA A records into AAAA records
  * for valid RFC6052 prefixes.
  */
 static struct {
index 22af41ef900c51004d5fc29ea016b66862ffb281..f7a6a9ca7f4b1f14ee5f9b705a33d0fcda89c97d 100644 (file)
@@ -608,7 +608,7 @@ dns_dnssec_keyactive(dst_key_t *key, isc_stdtime_t now) {
 }
 
 /*%<
- * Indicate whether a key is scheduled to to have CDS/CDNSKEY records
+ * Indicate whether a key is scheduled to have CDS/CDNSKEY records
  * published now.
  *
  * Returns true if.
@@ -660,7 +660,7 @@ syncpublish(dst_key_t *key, isc_stdtime_t now) {
 }
 
 /*%<
- * Indicate whether a key is scheduled to to have CDS/CDNSKEY records
+ * Indicate whether a key is scheduled to have CDS/CDNSKEY records
  * deleted now.
  *
  * Returns true if:
index 82abbf98f573c9d006ff501062d3e80726205e6f..4af2eed0e1bc5547e5d542db72e231a343f96a87 100644 (file)
@@ -217,7 +217,7 @@ struct dns_adbaddrinfo {
 };
 
 /*!<
- * When the caller recieves a callback from dns_adb_createfind(), the
+ * When the caller receives a callback from dns_adb_createfind(), the
  * argument will a pointer to the dns_adbfind_t structure, which includes
  * this includes a copy of the callback function and argument passed to
  * dns_adb_createfind(), and a dns_adbstatus_t in the 'status' field,
index 9ca1b98327fb76cde2dbb0852d473f8dd883dc52..05aa2955d41a6d495af9734c227745fb1bfb7fa5 100644 (file)
@@ -51,7 +51,7 @@
  */
 
 /*
- * Logarithms of hash set sizes. In the usual (small) case, allow for for a
+ * Logarithms of hash set sizes. In the usual (small) case, allow for a
  * few dozen names in the hash set. (We can't actually use every slot because
  * space is reserved for performance reasons.) For large messages, the number
  * of names is limited by the minimum size of an RR (owner, type, class, ttl,
index 83ea893d293016ab5c834182ff5af7cc2b2583bd..90cd159a3b00edf92b5c1477e9bd65662780a341 100644 (file)
@@ -677,7 +677,7 @@ dns_db_currentversion(dns_db_t *db, dns_dbversion_t **versionp);
  *
  * \li 'db' is a valid database with zone semantics.
  *
- * \li versionp != NULL && *verisonp == NULL
+ * \li versionp != NULL && *versionp == NULL
  *
  * Ensures:
  *
@@ -694,7 +694,7 @@ dns_db_newversion(dns_db_t *db, dns_dbversion_t **versionp);
  *
  * \li 'db' is a valid database with zone semantics.
  *
- * \li versionp != NULL && *verisonp == NULL
+ * \li versionp != NULL && *versionp == NULL
  *
  * Ensures:
  *
index f7cc6eaf273e0203cdef2bfd43d462c3f187fd51..1ee127115b38d0644e8f4a1a5ba38e872341570d 100644 (file)
@@ -193,7 +193,7 @@ dns_dispatch_createtcp(dns_dispatchmgr_t *mgr, const isc_sockaddr_t *localaddr,
  *
  * Note: a NULL transport is different from a non-NULL transport of type
  *      DNS_TRANSPORT_TCP, though currently their behavior is the same.
- *      This allows for different types of transactions to be seperated
+ *      This allows for different types of transactions to be separated
  *      in the future if needed.
  *
  * Requires:
index 98a230e6bf6c8295aa8cf184fe7164faa9c9f84e..d603f5a97c2e4b7881361acb423e0a7ed18a1f93 100644 (file)
@@ -80,10 +80,10 @@ dns_nametree_add(dns_nametree_t *nametree, const dns_name_t *name,
  * as dns_nametree_add() before the name is removed from the tree.
  *
  * If the nametree type was set to DNS_NAMETREE_BITS, then 'value' is
- * a bit number within a bit field, which is sized to accomodate at least
+ * a bit number within a bit field, which is sized to accommodate at least
  * 'value' bits. If the name already exists, then that bit will be set
  * in the bitfield, other bits will be retained, and ISC_R_SUCCESS will be
- * returned. If 'value' excees the number of bits in the existing bit
+ * returned. If 'value' exceeds the number of bits in the existing bit
  * field, the field will be expanded.
  *
  * Requires:
index b88451a64dac932029792b994942334a7ca03c30..700fb3a7732e1326dc8d875bd61f0208eb34f3e3 100644 (file)
@@ -332,7 +332,7 @@ typedef enum dns_qpgc {
 
 /***********************************************************************
  *
- *  functions - create, destory, enquire
+ *  functions - create, destroy, enquire
  */
 
 void
index a38e5ceaf7f653c8aa8ed88d7b62f960147fb790..82b9692b8b4c64e3a49ad53f969cfa8a25e36179 100644 (file)
@@ -111,7 +111,7 @@ dns_rdatalist_fromrdataset(dns_rdataset_t   *rdataset,
  * The following are implementation functions for list-based rdatasets.
  * They are called by rdataset implementations in rdatalist.c, sdlz.c,
  * and builtin.c. They are not meant to be used directly by callers of
- * those implmentations.
+ * those implementations.
  */
 void
 dns_rdatalist_disassociate(dns_rdataset_t *rdatasetp DNS__DB_FLARG);
index 974f94aa2a382744c1b22a3d6225622eb7016a1e..39b283aaed016c574893d59d6acf0e02f61a875e 100644 (file)
@@ -151,7 +151,7 @@ typedef isc_result_t (*dns_sdlzfindzone_t)(void *driverarg, void *dbdata,
 /*%<
  * Method prototype.  Drivers implementing the SDLZ interface MUST
  * supply a find zone method.  This method is called when the DNS
- * server is performing a query to to determine if 'name' is a
+ * server is performing a query to determine if 'name' is a
  * supported dns zone.  The find zone method will be called with the
  * longest possible name first, and continue to be called with
  * successively shorter domain names, until any of the following
@@ -336,7 +336,7 @@ dns_sdlz_putsoa_t dns_sdlz_putsoa;
 /*%<
  * This function may optionally be called from the 'authority'
  * callback to simplify construction of the SOA record for 'zone'.  It
- * will provide a SOA listing 'mname' as as the primary server and
+ * will provide a SOA listing 'mname' as the primary server and
  * 'rname' as the responsible person mailbox.  It is the
  * responsibility of the driver to increment the serial number between
  * responses if necessary.  All other SOA fields will have reasonable
index e39104361667000285b421617a44f89557e064a8..228b3aec1617cfb3d5bbcdc9b9e741f5fe25369e 100644 (file)
@@ -144,7 +144,7 @@ dns_ssutable_checkrules(dns_ssutable_t *table, const dns_name_t *signer,
  *             In dns_ssutable_checkrules(), 'addr' should only be
  *             set if the request received via TCP.  This provides a
  *             weak assurance that the request was not spoofed.
- *             'addr' is to to validate dns_ssumatchtype_tcpself
+ *             'addr' is to validate dns_ssumatchtype_tcpself
  *             and dns_ssumatchtype_6to4self rules.
  *
  *             In dns_ssutable_checkrules2(), 'addr' can also be passed for
index 86b8dd76702b5a74403dd9f92a9bbf899d675e82..cd72ed429d0a6920db0f9dee335d24c5d0d64789 100644 (file)
@@ -125,7 +125,7 @@ dns_tsigkey_createfromkey(const dns_name_t *name, dst_algorithm_t algorithm,
  *     and will not expire if inception == expire.
  *
  *     If generated is true (meaning the key was generated
- *     via TKEY negotation), the creating identity (if any), should
+ *     via TKEY negotiation), the creating identity (if any), should
  *     be specified in the creator parameter.
  *
  *     If restored is true, this indicates the key was restored from
index 36a837b16b2440ad16e1d6da5045e326d9cf40b0..7ec6fb31653e1831ab245ced2cee1e8e27e579fe 100644 (file)
@@ -363,7 +363,7 @@ dns_zone_dumptostream(dns_zone_t *zone, FILE *fd, dns_masterformat_t format,
  *    and 'rawversion' is ignored.
  *
  *    If 'format' is dns_masterformat_raw, 'style' is ignored, and
- *    'rawversion" specifies the format verson of the raw zone file:
+ *    'rawversion" specifies the format version of the raw zone file:
  *    version 0 raw files can be read by all BIND 9 releases;
  *    version 1 was introduced in BIND 9.9.
  *
@@ -551,7 +551,7 @@ dns_zone_findkeys(dns_zone_t *zone, dns_db_t *db, dns_dbversion_t *ver,
  * Requires:
  *\li  'zone' to be a valid initialised zone.
  *\li  'mctx' is not NULL.
- *\li  'keys' is not NULL and has enough space form 'nkeys' keys.
+ *\li  'keys' is not NULL and has enough space for 'nkeys' keys.
  *\li  'nkeys' is not NULL.
  *
  * Returns:
index 524ae33132b730838b91f0a4ee441a18b33ba413..e509c658dee8b40f24fca910ed6316ad79297f1b 100644 (file)
@@ -1174,7 +1174,7 @@ dns_zone_setcheckisservedby(dns_zone_t                 *zone,
 /*%<
  *     Set the post load integrity callback function 'checkisserverby'.
  *     'checkisserverby' will be called if the NS TARGET is not within
- *     the zone and there are A or AAAA records in the the zone.
+ *     the zone and there are A or AAAA records in the zone.
  *
  * Require:
  *     'zone' to be a valid zone.
index 622b564f1216c4d05eb81585fb3fd2332ef77928..8c7f3f8afa88b369a68d1c9596fedb0e3d8a5bb9 100644 (file)
@@ -1283,7 +1283,7 @@ dst_algorithm_fromdata(dns_secalg_t algorithm, unsigned char *data,
                       unsigned int length);
 /*%<
  * If 'algorithm' is PRIVATEOID or PRIVATEDNS, extract the DNSSEC private
- * algorithm encoded at the begining of data and return the DST algorithm
+ * algorithm encoded at the beginning of data and return the DST algorithm
  * number that corresponds to it; if the algorithm is unknown to DST,
  * return 0.
  *
index 000a33977e8caadb55c0540760987c51ef2ef907..1bb3f40f6540a70e0beb66be3103a1afba16cbce 100644 (file)
@@ -1281,7 +1281,7 @@ dns_name_fromwire(dns_name_t *const name, isc_buffer_t *const source,
         *
         * > In this scheme, an entire domain name or a list of labels at the
         * > end of a domain name is replaced with a pointer to a prior
-        * > occurance of the same name.
+        * > occurrence of the same name.
         *
         * The key word is "prior". This says that compression pointers must
         * point strictly earlier in the message (before our "marker" variable),
index 3317514f25dd48c3ce77d789ec44a469a31b2969..b2258bc2b9cd1be7fa0d59cf38c40278528adba5 100644 (file)
@@ -152,7 +152,7 @@ uint16_t dns_qp_bits_for_byte[BYTE_VALUES] = { 0 };
  *
  * This table only handles the first bit in an escape sequence; we
  * arrange that we can calculate the byte value for both bits by
- * adding the the second bit to the first bit's byte value.
+ * adding the second bit to the first bit's byte value.
  */
 uint8_t dns_qp_byte_for_bit[SHIFT_OFFSET] = { 0 };
 
index ef9f1e33621626577fc8aec32e74accc076cfeb7..21d7586ab0ea2db3aafa25f67630688dc1c5f04f 100644 (file)
@@ -52,7 +52,7 @@
  * In a branch node:
  * - The 64-bit word is subdivided into three portions: the least
  *   significant bits are the node type (for a branch, 0x1); the
- *   most sigificant 15 bits are an offset value into the key, and
+ *   most significant 15 bits are an offset value into the key, and
  *   the 47 bits in the middle are a bitmap; see the documentation
  *   for the SHIFT_* enum below.
  * - The 32-bit word is a reference (dns_qpref_t) to the packed sparse
@@ -820,7 +820,7 @@ zero_twigs(dns_qpnode_t *twigs, dns_qpweight_t size) {
  *
  * Packed reader nodes save us from having to track `dns_qpread_t`
  * objects as distinct allocations: the packed reader nodes get
- * reclaimed when the the chunk containing their cells is reclaimed.
+ * reclaimed when the chunk containing their cells is reclaimed.
  * When a real `dns_qpread_t` object is needed, it is allocated on the
  * stack (it must not live longer than a isc_loop callback) and the
  * packed reader is unpacked into it.
index eb85d5092c205d7c5ddf3bf772ea246d81feff00..04962e9474952b7faeefe7f5bc96432e4cb68168 100644 (file)
@@ -126,7 +126,7 @@ struct qpcnode {
         * and the database have both released the object) the object
         * is freed.
         *
-        * Whenever 'erefs' is incremented from zero, we also aquire a
+        * Whenever 'erefs' is incremented from zero, we also acquire a
         * node use reference (see 'qpcache->references' below), and
         * release it when 'erefs' goes back to zero. This prevents the
         * database from being shut down until every caller has released
index dce80a32ff6ae26e63f50aa4e111d94f755d412e..be6b29a5ffbdd2d45334bd9939b1021d82e8bf75 100644 (file)
@@ -192,7 +192,7 @@ struct qpznode {
         * and the database have both released the object) the object
         * is freed.
         *
-        * Whenever 'erefs' is incremented from zero, we also aquire a
+        * Whenever 'erefs' is incremented from zero, we also acquire a
         * node use reference (see 'qpzonedb->references' below), and
         * release it when 'erefs' goes back to zero. This prevents the
         * database from being shut down until every caller has released
@@ -2664,7 +2664,7 @@ findnodeintree(qpzonedb_t *qpdb, dns_qp_t *qp, const dns_name_t *name,
                INSIST(node->nspace == DNS_DBNAMESPACE_NSEC3 || !nsec3);
        }
        /*
-        * ... if the lookup is unsucessful, and the caller didn't ask us
+        * ... if the lookup is unsuccessful, and the caller didn't ask us
         * to create a new node, there is nothing to do. Return the result
         * of the lookup to the caller, and set *nodep to NULL
         */
@@ -4373,7 +4373,7 @@ dbiterator_last(dns_dbiterator_t *iterator DNS__DB_FLARG) {
                /* FALLTHROUGH */
        case nonsec3:
                /*
-                * The final non-nsec node is before the the NSEC origin node.
+                * The final non-nsec node is before the NSEC origin node.
                 */
                result = dns_qp_lookup(qpdbiter->snap, &qpdb->common.origin,
                                       DNS_DBNAMESPACE_NSEC, &qpdbiter->iter,
index 1b1f6f02fc29d39702b1d63f5c2704f1bda495f3..4eb059e5ee47b44542d6418a1ad5e18d3d11603c 100644 (file)
@@ -230,7 +230,7 @@ checkowner_in_a(ARGS_CHECKOWNER) {
                }
 
                /*
-                * Handle SPF exists targets when the seperating label is:
+                * Handle SPF exists targets when the separating label is:
                 * - "_spf" RFC7208, section 5.7
                 * - "_spf_verify" RFC7208, Appendix D1
                 * - "_spf_rate" RFC7208, Appendix D1
index b41a9726ca31f68cae334b4f3e0c7445bfd5dcc8..258b8bf076cbf7c703f62eb26084b3fe4b18a9c3 100644 (file)
@@ -2021,7 +2021,7 @@ fctx_setretryinterval(fetchctx_t *fctx, unsigned int rtt) {
        }
 
        /*
-        * But don't wait past the the final expiration of the fetch,
+        * But don't wait past the final expiration of the fetch,
         * or for more than 10 seconds total.
         */
        if (us > limit) {
@@ -3289,7 +3289,7 @@ add_bad(fetchctx_t *fctx, dns_message_t *rmessage, dns_adbaddrinfo_t *addrinfo,
  *
  * Since there's a good chance the server is broken and won't answer either
  * query, and since an ADB find with two pending fetches is a very rare
- * occurrance anyway, we regard this theoretical SERVFAIL as the lesser
+ * occurrence anyway, we regard this theoretical SERVFAIL as the lesser
  * evil.
  */
 static bool
@@ -4563,7 +4563,7 @@ resume_qmin(void *arg) {
                }
 
                /*
-                * We have got a CNAME or DNAME respone to the NS query
+                * We have got a CNAME or DNAME response to the NS query
                 * so we are done in almost all cases.
                 */
                if ((result == DNS_R_CNAME || result == DNS_R_DNAME) &&
index c5e3c9b8df7608e1dc77373cb0ecfcc3958e0ada..079d34e3501d2df3fb4accb4e4eeccdd0ba2651b 100644 (file)
@@ -578,7 +578,7 @@ fix_qname_skip_recurse(dns_rpz_zones_t *rpzs) {
                 * it is okay to skip recursion. After the first zone
                 * that has to wait for recursion, all the others have
                 * to wait as well, so we want to create a mask in which
-                * all the trailing zeroes in zbits_req are are 1, and
+                * all the trailing zeroes in zbits_req are 1, and
                 * more significant bits are 0. (For instance,
                 * 0x0700 => 0x00ff, 0x0007 => 0x0000)
                 */
index 91cf387f5ba744cdac1fbfe335881602a7d894a4..fd86ec024ff9e3f95cc72755db4ff440eec685d9 100644 (file)
@@ -46,7 +46,7 @@ log_end(dns_rrl_t *rrl, dns_rrl_entry_t *e, bool early, char *log_buf,
 
 /*
  * Get a modulus for a hash function that is tolerably likely to be
- * relatively prime to most inputs.  Of course, we get a prime for for initial
+ * relatively prime to most inputs.  Of course, we get a prime for initial
  * values not larger than the square of the last prime.  We often get a prime
  * after that.
  * This works well in practice for hash tables up to at least 100
index ced9fc680be55a7439b8d4a9b8e8e96c78f5aa0b..d24e2d8a8b6c4c0be4f00ea03f2bd5cdca9fdf10 100644 (file)
@@ -262,7 +262,7 @@ static void
 ucentry_backoff(const dns_unreachcache_t *uc, const isc_stdtime_t now,
                dns_ucentry_t *new, const dns_ucentry_t *old) {
        /*
-        * Perform exponential backoff if this is an expired entry wating to be
+        * Perform exponential backoff if this is an expired entry waiting to be
         * evicted. Otherwise it's a duplicate entry and no backoff is required
         * as we will just update the cache with a new entry that has the same
         * expiration time as the old one, but calculated freshly, based on the
index acfd3256c46c6f6b52239ff9e561e254ef42ef12..77f31002e2075690e6d5995c614004b196619234 100644 (file)
@@ -169,7 +169,7 @@ isc_histo_digits_to_bits(uint digits) {
  * one value per bucket. There are CHUNKSIZE values before chunk 1
  * which map to chunk 0, so it also has one value per bucket. (Hence
  * the first two chunks have one value per bucket.) The values in
- * chunk 0 correspond to denormal nubers in floating point terms.
+ * chunk 0 correspond to denormal numbers in floating point terms.
  * They are also the values where `63 - sigbits - clz` would be less
  * than one if denormals were not handled specially.
  *
index f18978cdac727877d01f21102b566943c81b5f48..d86a1933c331136893008f0a0f19c73dd817d7aa 100644 (file)
@@ -116,7 +116,7 @@ rehashing_in_progress(const isc_ht_t *ht) {
 }
 
 static bool
-hashtable_is_overcommited(isc_ht_t *ht) {
+hashtable_is_overcommitted(isc_ht_t *ht) {
        return ht->count >= (ht->size[ht->hindex] * HT_OVERCOMMIT);
 }
 
@@ -313,7 +313,7 @@ isc_ht_add(isc_ht_t *ht, const unsigned char *key, const uint32_t keysize,
        if (rehashing_in_progress(ht)) {
                /* Rehash in progress */
                hashtable_rehash_one(ht);
-       } else if (hashtable_is_overcommited(ht)) {
+       } else if (hashtable_is_overcommitted(ht)) {
                /* Rehash requested */
                maybe_rehash(ht, ht->count);
        }
index ebe042cb74e824a7871c13dd348ddc07375272f7..a89d0fc01f3215fa7d10fab13eb596cf493816a6 100644 (file)
@@ -73,7 +73,7 @@ isc_hex_totext(isc_region_t *source, int wordlength, const char *wordbreak,
  * `isc_hex_decodestring()`, which can be directly used for simpler cases.
  * However, for more complex cases (or cases which, for instance, must not have
  * white spaces, or if the input is not a null-terminated string) using those
- * lower-level API might be usefull.
+ * lower-level API might be useful.
  */
 
 void
index 06f0893f98597a662416f86e92ff10904a1994f4..b8497c21f217193e510afe9b2d76301b820ce29c 100644 (file)
@@ -13,7 +13,7 @@
 
 /*!
  * \file isc/hmac.h
- * \brief This is the header for for message authentication code.
+ * \brief This is the header for message authentication code.
  */
 
 #pragma once
index a22015432042eb735fa9e74ce8a393d8d82e972a..b3642f47c1c517fb482d257f6df6941633c13fa5 100644 (file)
@@ -18,7 +18,7 @@
 /*%
  * These functions are wrappers around the corresponding stdio functions.
  *
- * They return a detailed error code in the form of an an isc_result_t.  ANSI C
+ * They return a detailed error code in the form of an isc_result_t.  ANSI C
  * does not guarantee that stdio functions set errno, hence these functions
  * must use platform dependent methods (e.g., the POSIX errno) to construct the
  * error code.
index 1e10a7d64920083aebcb23330a28269b2419aacf..d824da0c6bba74056dcd4289fdf62d8ba4911a91 100644 (file)
@@ -216,7 +216,7 @@ isc_tlsctx_enable_http2client_alpn(isc_tlsctx_t *ctx);
 void
 isc_tlsctx_enable_http2server_alpn(isc_tlsctx_t *ctx);
 /*%<
- * Enable HTTP/2 Application Layer Protocol Negotation for 'ctx'.
+ * Enable HTTP/2 Application Layer Protocol Negotiation for 'ctx'.
  *
  * Requires:
  *\li  'ctx' is not NULL.
@@ -235,7 +235,7 @@ isc_tlsctx_enable_dot_client_alpn(isc_tlsctx_t *ctx);
 void
 isc_tlsctx_enable_dot_server_alpn(isc_tlsctx_t *ctx);
 /*%<
- * Enable DoT Application Layer Protocol Negotation for 'ctx'.
+ * Enable DoT Application Layer Protocol Negotiation for 'ctx'.
  *
  * Requires:
  *\li  'ctx' is not NULL.
index 0055311cb2070e87b85bfb51aed1bd6646579495..79357ff3f9d6e8ddb6571da11704cb65cd859b6a 100644 (file)
@@ -1463,7 +1463,7 @@ http_send_outgoing(isc_nm_http_session_t *session, isc_nmhandle_t *httphandle,
        if (cb != NULL) {
                /*
                 * Case 0: The callback is specified, that means that a DNS
-                * message is ready. Let's flush the the buffer.
+                * message is ready. Let's flush the buffer.
                 */
                total = max_total_write_size;
        } else if (max_total_write_size >= FLUSH_HTTP_WRITE_BUFFER_AFTER) {
@@ -1475,9 +1475,9 @@ http_send_outgoing(isc_nm_http_session_t *session, isc_nmhandle_t *httphandle,
        } else if (session->sending > 0 && total > 0) {
                /*
                 * Case 2: There is one or more write requests in flight and
-                * we have some new data form nghttp2 to send.
+                * we have some new data from nghttp2 to send.
                 * Then let's return from the function: as soon as the
-                * "in-flight" write callback get's called or we have reached
+                * "in-flight" write callback gets called or we have reached
                 * FLUSH_HTTP_WRITE_BUFFER_AFTER bytes in the write buffer, we
                 * will flush the buffer. */
                INSIST(cb == NULL);
index 7a3a357fe7fa02e4645de3a88b4f93615b7515f3..9d50d98e1a48e3bd009eab28c3860d24dcb7d527 100644 (file)
@@ -919,7 +919,7 @@ accept_connection(isc_nmsocket_t *csock) {
 
        /*
         * We need to initialize the tcp and timer before failing because
-        * isc__nm_tcp_close() can't handle uninitalized TCP nmsocket.
+        * isc__nm_tcp_close() can't handle uninitialized TCP nmsocket.
         */
        if (isc__nmsocket_closing(csock)) {
                CLEANUP(ISC_R_CANCELED);
index 933137714bcae7d6d4cac6d547a500b779097ae9..89fb8b6aa3bf4ea2652ad31265d25ac1646291ab 100644 (file)
@@ -646,7 +646,7 @@ phr_decode_chunked(struct phr_chunked_decoder *decoder, char *buf,
                        }
                        decoder->_hex_count = 0;
                        decoder->_state = CHUNKED_IN_CHUNK_EXT;
-               /* fallthru */
+               /* fall through */
                case CHUNKED_IN_CHUNK_EXT:
                        /* RFC 7230 A.2 "Line folding in chunk extensions is
                         * disallowed" */
@@ -669,7 +669,7 @@ phr_decode_chunked(struct phr_chunked_decoder *decoder, char *buf,
                                }
                        }
                        decoder->_state = CHUNKED_IN_CHUNK_DATA;
-               /* fallthru */
+               /* fall through */
                case CHUNKED_IN_CHUNK_DATA: {
                        size_t avail = bufsz - src;
                        if (avail < decoder->bytes_left_in_chunk) {
@@ -690,7 +690,7 @@ phr_decode_chunked(struct phr_chunked_decoder *decoder, char *buf,
                        decoder->bytes_left_in_chunk = 0;
                        decoder->_state = CHUNKED_IN_CHUNK_CRLF;
                }
-               /* fallthru */
+               /* fall through */
                case CHUNKED_IN_CHUNK_CRLF:
                        for (;; ++src) {
                                if (src == bufsz) {
@@ -720,7 +720,7 @@ phr_decode_chunked(struct phr_chunked_decoder *decoder, char *buf,
                                goto Complete;
                        }
                        decoder->_state = CHUNKED_IN_TRAILERS_LINE_MIDDLE;
-               /* fallthru */
+               /* fall through */
                case CHUNKED_IN_TRAILERS_LINE_MIDDLE:
                        for (;; ++src) {
                                if (src == bufsz) {
index be410d77097835f5c8319ebafe113b941fb27e72..35432b116e14582740ba1482c5bd09e3735ca481 100644 (file)
@@ -2223,8 +2223,8 @@ done:
 #endif /* HAVE_LIBNGHTTP2 */
 
 static isc_result_t
-check_tls_defintion(const cfg_obj_t *tlsobj, const char *name,
-                   isc_symtab_t *symtab) {
+check_tls_definition(const cfg_obj_t *tlsobj, const char *name,
+                    isc_symtab_t *symtab) {
        isc_result_t result = ISC_R_SUCCESS, tresult;
        const cfg_obj_t *tls_proto_list = NULL, *tls_key = NULL,
                        *tls_cert = NULL, *tls_ciphers = NULL,
@@ -2372,7 +2372,7 @@ check_tls_definitions(const cfg_obj_t *config, isc_mem_t *mctx) {
                const char *name;
                obj = cfg_listelt_value(elt);
                name = cfg_obj_asstring(cfg_map_getname(obj));
-               tresult = check_tls_defintion(obj, name, symtab);
+               tresult = check_tls_definition(obj, name, symtab);
                if (result == ISC_R_SUCCESS) {
                        result = tresult;
                }
index 6ce2a5b7617d1c486236220f682ef6d42cd23474..a06ee3fc0a75fda8920ca0d60c8676373427d592 100644 (file)
@@ -47,7 +47,7 @@ cfg_acl_fromconfig(const cfg_obj_t *caml, const cfg_obj_t *cctx,
  * Construct a new dns_acl_t from configuration data in 'caml' and
  * 'cctx'.  Memory is allocated through 'mctx'.
  *
- * Any named ACLs referred to within 'caml' will be be converted
+ * Any named ACLs referred to within 'caml' will be converted
  * into nested dns_acl_t objects.  Multiple references to the same
  * named ACLs will be converted into shared references to a single
  * nested dns_acl_t object when the referring objects were created