From 4af80bc2045ee85592a82bc9aacaee71f8667ea0 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Fri, 10 Jun 2005 22:07:05 +0000 Subject: [PATCH] unbalanced-unlock-20050610 Addition of __EXPERIMENTAL_CALLBACK_CONN_MOVING if defined left an unbalanced H_UNLOCK. Semi-colons after H_LOCK and H_UNLOCK were missing. --- src/viced/afsfileprocs.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/viced/afsfileprocs.c b/src/viced/afsfileprocs.c index fb3a071..4dab214 100644 --- a/src/viced/afsfileprocs.c +++ b/src/viced/afsfileprocs.c @@ -7249,8 +7249,7 @@ SRXAFS_CallBackRxConnAddr (struct rx_call * acall, afs_int32 *addr) #ifndef __EXPERIMENTAL_CALLBACK_CONN_MOVING errorCode = 1; #else - - H_LOCK + H_LOCK; tclient = h_FindClient_r(tcon); thost = tclient->host; @@ -7283,9 +7282,9 @@ SRXAFS_CallBackRxConnAddr (struct rx_call * acall, afs_int32 *addr) thost->port, 1, sc, 0); rx_SetConnDeadTime(conn, 2); rx_SetConnHardDeadTime(conn, AFS_HARDDEADTIME); - H_UNLOCK + H_UNLOCK; errorCode = RXAFSCB_Probe(conn); - H_LOCK + H_LOCK; if (!errorCode) { if ( thost->callback_rxcon ) rx_DestroyConnection(thost->callback_rxcon); @@ -7299,10 +7298,10 @@ SRXAFS_CallBackRxConnAddr (struct rx_call * acall, afs_int32 *addr) } else { rx_DestroyConnection(conn); } + Bad_CallBackRxConnAddr: + H_UNLOCK; #endif - Bad_CallBackRxConnAddr: - H_UNLOCK; errorCode = CallPostamble(tcon, errorCode); Bad_CallBackRxConnAddr1: return errorCode; /* failure */ -- 1.9.4