fixed variable declarations

This commit is contained in:
hyung-hwan 2014-12-27 07:00:05 +00:00
parent 0fdcaf547f
commit c0fb7692d6
2 changed files with 10 additions and 4 deletions

View File

@ -105,7 +105,6 @@ int qse_fs_sysgetattr (qse_fs_t* fs, const qse_fs_char_t* fspath, qse_fs_attr_t*
#endif #endif
} }
int qse_fs_getattrmbs (qse_fs_t* fs, const qse_mchar_t* path, qse_fs_attr_t* attr) int qse_fs_getattrmbs (qse_fs_t* fs, const qse_mchar_t* path, qse_fs_attr_t* attr)
{ {
qse_fs_char_t* fspath; qse_fs_char_t* fspath;

View File

@ -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++) for (i = 0; i < qdcount; i++)
{ {
qse_size_t reclen; qse_size_t reclen;
qse_uint8_t dnlen; qse_size_t dnlen;
dnlen = dn_length (plptr, pllen); dnlen = dn_length (plptr, pllen);
if (dnlen <= 0) goto done; /* invalid dn name */ 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++) for (i = 0; i < ancount; i++)
{ {
qse_size_t reclen; qse_size_t reclen;
qse_uint8_t dnlen; qse_size_t dnlen;
if (pllen < 1) goto done; /* weird length */ 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 else
{ {
dnlen = dn_length (plptr, pllen); dnlen = dn_length (plptr, pllen);