}
/* Compare both names, for use with tsearch. The order is arbitrary,
- but the comparison is case-insenstive. */
+ but the comparison is case-insensitive. */
static int
compare_compressed_name (const void *left, const void *right)
{
if (lenleft == 0)
/* End of name reached without spotting a difference. */
return 0;
- /* Compare the label in a case-insenstive manner. */
+ /* Compare the label in a case-insensitive manner. */
const unsigned char *endnameleft = nameleft + lenleft;
while (nameleft < endnameleft)
{
_Static_assert (sizeof (rr) == 11, "EDNS record size");
if (remaining < 4 + sizeof (rr))
- FAIL_EXIT1 ("mailformed DNS query: no room for EDNS record");
+ FAIL_EXIT1 ("malformed DNS query: no room for EDNS record");
memcpy (&rr, buffer + 12 + ret + 4, sizeof (rr));
if (rr.root != 0)
FAIL_EXIT1 ("malformed DNS query: invalid OPT RNAME: %d\n", rr.root);
--count;
continue;
}
- /* Try to rewrite the remaing buffers. */
+ /* Try to rewrite the remaining buffers. */
ssize_t ret = writev (fd, buffers, count);
if (ret < 0)
FAIL_EXIT1 ("writev: %m");
{
while (true)
{
- /* Get the client conenction. */
+ /* Get the client connection. */
int client_socket = xaccept
(obj->servers[server_index].socket_tcp, NULL, NULL);