Forgot to handle lookup failure for GET

parent d76261ab
...@@ -369,6 +369,10 @@ tus_request(VRT_CTX, struct VPFX(tus_server) *tussrv, ...@@ -369,6 +369,10 @@ tus_request(VRT_CTX, struct VPFX(tus_server) *tussrv,
} }
if (m == GET) { if (m == GET) {
if (fcore == NULL) {
r->status = 404;
return (0);
}
AN(fdisk); AN(fdisk);
if (fdisk->location_length > 0) { if (fdisk->location_length > 0) {
/* done file */ /* done file */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment