From c0fb7692d6f8e3bcbc298f143fea355d87535140 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Sat, 27 Dec 2014 07:00:05 +0000 Subject: [PATCH] fixed variable declarations --- qse/lib/cmn/fs-attr.c | 1 - qse/lib/http/httpd-std-dns.h | 13 ++++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/qse/lib/cmn/fs-attr.c b/qse/lib/cmn/fs-attr.c index d1794ff0..333d922d 100644 --- a/qse/lib/cmn/fs-attr.c +++ b/qse/lib/cmn/fs-attr.c @@ -105,7 +105,6 @@ int qse_fs_sysgetattr (qse_fs_t* fs, const qse_fs_char_t* fspath, qse_fs_attr_t* #endif } - int qse_fs_getattrmbs (qse_fs_t* fs, const qse_mchar_t* path, qse_fs_attr_t* attr) { qse_fs_char_t* fspath; diff --git a/qse/lib/http/httpd-std-dns.h b/qse/lib/http/httpd-std-dns.h index b263b515..f457af5c 100644 --- a/qse/lib/http/httpd-std-dns.h +++ b/qse/lib/http/httpd-std-dns.h @@ -665,7 +665,7 @@ static int dns_recv (qse_httpd_t* httpd, qse_httpd_dns_t* dns, qse_httpd_hnd_t h for (i = 0; i < qdcount; i++) { qse_size_t reclen; - qse_uint8_t dnlen; + qse_size_t dnlen; dnlen = dn_length (plptr, pllen); if (dnlen <= 0) goto done; /* invalid dn name */ @@ -708,11 +708,18 @@ static int dns_recv (qse_httpd_t* httpd, qse_httpd_dns_t* dns, qse_httpd_hnd_t h for (i = 0; i < ancount; i++) { qse_size_t reclen; - qse_uint8_t dnlen; + qse_size_t dnlen; if (pllen < 1) goto done; /* weird length */ - if (*plptr > 63) dnlen = 2; + if (*plptr > 63) + { +/* TODO TODO TODO TODO */ + /* this is not really right. each segment can be pointing to + * somewhere else. TODO: fix the problem. dn_legnth() needs + * to use the original request packet also */ + dnlen = 2; + } else { dnlen = dn_length (plptr, pllen);