Kill fid when Tattach fails.
This commit is contained in:
parent
ea28e8eeec
commit
e5533b16b6
1 changed files with 5 additions and 0 deletions
|
@ -121,6 +121,11 @@ l9p_respond(struct l9p_request *req, int errnum)
|
|||
#endif
|
||||
|
||||
switch (req->lr_req.hdr.type) {
|
||||
case L9P_TATTACH:
|
||||
if (errnum != 0)
|
||||
l9p_connection_remove_fid(conn, req->lr_fid);
|
||||
|
||||
break;
|
||||
case L9P_TCLUNK:
|
||||
case L9P_TREMOVE:
|
||||
if (req->lr_fid != NULL)
|
||||
|
|
Loading…
Add table
Reference in a new issue