mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
Do not recurse on the glock in rxk_NewSocketHost
If sobind() failed, we would lock the glock before going to bad, which proceeded to lock the glock, panic()ing on the recursion attempt. Remove the unneeded first call. Change-Id: Ifa793735ebe64bde98156caa610c06612bdb92bd Reviewed-on: http://gerrit.openafs.org/2330 Reviewed-by: Jeffrey Altman <jaltman@openafs.org> Tested-by: Jeffrey Altman <jaltman@openafs.org>
This commit is contained in:
parent
b54c7ceefe
commit
bf8746dc43
@ -951,7 +951,6 @@ rxk_NewSocketHost(afs_uint32 ahost, short aport)
|
||||
if (code) {
|
||||
dpf(("sobind fails (%d)\n", (int)code));
|
||||
soclose(newSocket);
|
||||
AFS_GLOCK();
|
||||
goto bad;
|
||||
}
|
||||
#else /* defined(AFS_DARWIN_ENV) || defined(AFS_FBSD_ENV) */
|
||||
|
Loading…
x
Reference in New Issue
Block a user