a bug fix in htrd.c

This commit is contained in:
hyung-hwan 2020-05-20 07:26:49 +00:00
parent 1b46bba861
commit 85447c8882

View File

@ -397,7 +397,15 @@ static qse_mchar_t* parse_initial_line (qse_htrd_t* htrd, qse_mchar_t* line)
/* the url must be followed by a space */
if (!is_space_octet(*p)) goto badre;
if (param.ptr)
{
param.len = p - param.ptr; /* length of the param part */
}
else
{
tmp.len = p - tmp.ptr;
param.len = 0;
}
*p = QSE_MT('\0'); /* null-terminate the path or param part */
if (param.ptr)