Skip to content

Commit

Permalink
[SSI] Make sure the request sessN pointer is always valid.
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 committed Sep 17, 2019
1 parent 4974eda commit 5fdb8a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/XrdSsi/XrdSsiFileReq.cc
Expand Up @@ -487,6 +487,7 @@ void XrdSsiFileReq::Finalize()
mHelper.UnLock();
wt4fin.Wait();
}
sessN = "n/a";
return;

// Request is bound so we can finish right off.
Expand All @@ -499,13 +500,15 @@ void XrdSsiFileReq::Finalize()
Stats.Bump(Stats.ReqFinished);
if (cancel) Stats.Bump(Stats.ReqCancels);
Finished(cancel); // This object may be deleted!
sessN = "n/a";
return;
break;

// The following two cases may happen but it's safe to ignore them.
//
case isAbort:
case isDone: return;
case isDone: sessN = "bad";
return;
break;
default: break;
}
Expand Down

0 comments on commit 5fdb8a4

Please sign in to comment.