diff options
| author | Gordon McNab <[email protected]> | 2023-01-30 10:06:55 +0000 |
|---|---|---|
| committer | Gordon McNab <[email protected]> | 2023-01-30 10:06:55 +0000 |
| commit | c07fb9a71e5d3e85c8729bf6a8683a4c8b8096be (patch) | |
| tree | 04904901977410aeb5658f1f526ee76b9b6f501e /lib/networking/dnserver.c | |
| parent | 63e6aea5ac4aed5a7b405a42c888cec66432ee26 (diff) | |
| parent | 6dd40603f92a04d695b78a3ee6c0276525960aef (diff) | |
Merge branch 'port-ft90x' of https://github.com/ftdigdm/tinyusb into port-ft90x
Diffstat (limited to 'lib/networking/dnserver.c')
| -rw-r--r-- | lib/networking/dnserver.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/networking/dnserver.c b/lib/networking/dnserver.c index e4e7c3492..539cc2cea 100644 --- a/lib/networking/dnserver.c +++ b/lib/networking/dnserver.c @@ -93,11 +93,11 @@ static uint16_t get_uint16(const uint8_t *pnt) static int parse_next_query(void *data, int size, dns_query_t *query) { int len; - int lables; + int labels; uint8_t *ptr; len = 0; - lables = 0; + labels = 0; ptr = (uint8_t *)data; while (true) @@ -107,7 +107,7 @@ static int parse_next_query(void *data, int size, dns_query_t *query) lable_len = *ptr++; size--; if (lable_len == 0) break; - if (lables > 0) + if (labels > 0) { if (len == DNS_MAX_HOST_NAME_LEN) return -2; query->name[len++] = '.'; @@ -118,7 +118,7 @@ static int parse_next_query(void *data, int size, dns_query_t *query) len += lable_len; ptr += lable_len; size -= lable_len; - lables++; + labels++; } if (size < 4) return -1; |
