]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE12-winnt-find-token-event-missing-braces-20030206
authorAndrei Keis <Andrei.Keis@morganstanley.com>
Thu, 6 Feb 2003 23:03:14 +0000 (23:03 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 6 Feb 2003 23:03:14 +0000 (23:03 +0000)
FIXES 1288

add missing {} braces

(cherry picked from commit 922e0cce763f522c9fdf8df7d60d73f07056f45a)

src/WINNT/afsd/cm_rpc.c

index 33f4c8ee4806b26e0673ad62ff498e4f6608ccb0..1c250caf969bd2dcc4b11dee08b14921aca3fd37 100644 (file)
@@ -81,15 +81,16 @@ BOOL cm_FindTokenEvent(afs_uuid_t uuid, char sessionKey[8])
        te = tokenEvents;
        ltep = &tokenEvents;
        while (te) {
-               if (UuidEqual((UUID *)&uuid, (UUID *)&te->uuid, &status))
+           if (UuidEqual((UUID *)&uuid, (UUID *)&te->uuid, &status)) {
                        *ltep = te->next;
                        lock_ReleaseMutex(&tokenEventLock);
                        memcpy(sessionKey, te->sessionKey,
                                sizeof(te->sessionKey));
                        free(te);
                        return TRUE;
-               ltep = &te->next;
-               te = te->next;
+           }
+           ltep = &te->next;
+           te = te->next;
        }
        lock_ReleaseMutex(&tokenEventLock);
        return FALSE;