winnt-find-token-event-missing-braces-20030206
authorAndrei Keis <Andrei.Keis@morganstanley.com>
Thu, 6 Feb 2003 23:02:00 +0000 (23:02 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 6 Feb 2003 23:02:00 +0000 (23:02 +0000)
FIXES 1288

add missing {} braces

src/WINNT/afsd/cm_rpc.c

index 33f4c8e..1c250ca 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;