Changeset 102561 in vbox
- Timestamp:
- Dec 11, 2023 8:19:20 AM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/http-server.cpp
r100670 r102561 423 423 424 424 RTHttpHeaderListDestroy(pReq->hHdrLst); 425 pReq->hHdrLst = NIL_RTHTTPHEADERLIST; 425 426 426 427 rtHttpServerBodyDestroy(&pReq->Body); … … 473 474 474 475 RTHttpHeaderListDestroy(pResp->hHdrLst); 476 pResp->hHdrLst = NIL_RTHTTPHEADERLIST; 475 477 476 478 rtHttpServerBodyDestroy(&pResp->Body); … … 499 501 char **ppapszStrings; 500 502 size_t cStrings; 501 int rc2 = RTStrSplit(pszData, strlen(pszData), RTHTTPSERVER_HTTP11_EOL_STR, &ppapszStrings, &cStrings); 503 int rc2 = RTStrSplit(pszData, strlen(pszData) + 1 /* Must include terminator */, 504 RTHTTPSERVER_HTTP11_EOL_STR, &ppapszStrings, &cStrings); 502 505 if (RT_SUCCESS(rc2)) 503 506 { … … 789 792 790 793 RTHttpHeaderListDestroy(HdrLst); 794 HdrLst = NIL_RTHTTPHEADERLIST; 791 795 792 796 if (rc == VERR_BROKEN_PIPE) /* Could happen on fast reloads. */ … … 883 887 884 888 RTHttpHeaderListDestroy(HdrLst); 889 HdrLst = NIL_RTHTTPHEADERLIST; 885 890 } 886 891 … … 964 969 965 970 RTHttpHeaderListDestroy(HdrLst); 971 HdrLst = NIL_RTHTTPHEADERLIST; 966 972 967 973 size_t cbToRead = fsObj.cbObject;
Note:
See TracChangeset
for help on using the changeset viewer.