File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -1644,12 +1644,17 @@ static void HTTPsReq_HdrParse (HTTPs_INSTANCE *p_instance,
1644
1644
sizeof (HTTP_STR_MULTIPART_BOUNDARY ));
1645
1645
1646
1646
if (p_val == DEF_NULL ) {
1647
- * p_err = HTTPs_ERR_REQ_FORMAT_INVALID ;
1648
- return ;
1647
+ * p_err = HTTPs_ERR_REQ_FORMAT_INVALID ;
1648
+ return ;
1649
1649
}
1650
1650
1651
1651
/* Boundary located after '='. */
1652
1652
p_val = Str_Char_N (p_val , len , ASCII_CHAR_EQUALS_SIGN );
1653
+ if (p_val == DEF_NULL ) {
1654
+ * p_err = HTTPs_ERR_REQ_FORMAT_INVALID ;
1655
+ return ;
1656
+ }
1657
+
1653
1658
p_val ++ ; /* Remove space before boundary val. */
1654
1659
p_val = HTTP_StrGraphSrchFirst (p_val ,
1655
1660
len );
@@ -1676,8 +1681,8 @@ static void HTTPsReq_HdrParse (HTTPs_INSTANCE *p_instance,
1676
1681
}
1677
1682
}
1678
1683
1679
- } else { /* Should not occurs. */
1680
- * p_err = HTTPs_ERR_REQ_MORE_DATA_REQUIRED ;
1684
+ } else { /* Should not occur. */
1685
+ * p_err = HTTPs_ERR_REQ_MORE_DATA_REQUIRED ;
1681
1686
return ;
1682
1687
}
1683
1688
break ;
You can’t perform that action at this time.
0 commit comments