Restrict timeLeft in cm_Analyze() to SMB constraints only
when SMB mode is in use.
Change-Id: Iff37b90c1532fe9aa7d57567f4ff4e5e6877cb65
Reviewed-on: http://gerrit.openafs.org/5341
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
/* timeleft - get it from reqp the same way as cm_ConnByMServers does */
timeUsed = (GetTickCount() - reqp->startTime) / 1000;
- timeLeft = HardDeadtimeout - timeUsed;
+ if ( reqp->flags & CM_REQ_SOURCE_SMB )
+ timeLeft = HardDeadtimeout - timeUsed;
+ else
+ timeLeft = 0x0FFFFFFF;
/* get a pointer to the cell */
if (errorCode) {