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:
Ben Kaduk 2010-07-03 22:58:39 -04:00 committed by Jeffrey Altman
parent b54c7ceefe
commit bf8746dc43

View File

@ -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) */