From: Felix Frank Date: Mon, 13 Jul 2009 09:13:21 +0000 (+0200) Subject: Immediately abort call when not able to fetch length (fetchInit). X-Git-Tag: openafs-devel-1_5_63~8 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=d47eb8f21b2782d9441c2ea4d0261c21cb423a19;p=packages%2Fo%2Fopenafs.git Immediately abort call when not able to fetch length (fetchInit). Reviewed-on: http://gerrit.openafs.org/132 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/afs/afs_fetchstore.c b/src/afs/afs_fetchstore.c index 145057fdc..d6cbc82a8 100644 --- a/src/afs/afs_fetchstore.c +++ b/src/afs/afs_fetchstore.c @@ -952,7 +952,11 @@ rxfs_fetchInit(register struct afs_conn *tc, struct vcache *avc,afs_offs_t base, if (bytes == sizeof(afs_int32)) length = ntohl(length); else { + RX_AFS_GUNLOCK(); code = rx_Error(v->call); + code1 = rx_EndCall(v->call, code); + v->call = NULL; + RX_AFS_GLOCK(); } } FillInt64(length64, length_hi, length); @@ -975,6 +979,8 @@ rxfs_fetchInit(register struct afs_conn *tc, struct vcache *avc,afs_offs_t base, *alength = ntohl(length); } else { code = rx_Error(v->call); + code1 = rx_EndCall(v->call, code); + v->call = NULL; } } #endif /* AFS_64BIT_CLIENT */