From: Jeffrey Hutzelman Date: Sat, 18 Oct 2008 20:25:56 +0000 (+0000) Subject: newtrans-lock-fix-fix-20081018 X-Git-Tag: openafs-devel-1_5_61~742 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=2767cbf773653bffaa63e098cce463ada804d6d7;p=packages%2Fo%2Fopenafs.git newtrans-lock-fix-fix-20081018 LICENSE IPL10 swap in the freshly allocated memory instead of throwing it away --- diff --git a/src/volser/voltrans.c b/src/volser/voltrans.c index 610e75b98..094485b25 100644 --- a/src/volser/voltrans.c +++ b/src/volser/voltrans.c @@ -88,7 +88,7 @@ NewTrans(afs_int32 avol, afs_int32 apart) return (struct volser_trans *)0; /* volume busy */ } } - newtt = tt; + tt = newtt; memset(tt, 0, sizeof(struct volser_trans)); tt->volid = avol; tt->partition = apart;