From d47eb8f21b2782d9441c2ea4d0261c21cb423a19 Mon Sep 17 00:00:00 2001 From: Felix Frank Date: Mon, 13 Jul 2009 11:13:21 +0200 Subject: [PATCH] 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 --- src/afs/afs_fetchstore.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/afs/afs_fetchstore.c b/src/afs/afs_fetchstore.c index 145057f..d6cbc82 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 */ -- 1.9.4