hash_lookup funnies in src/auth/digest/auth_digest.c

From: Duane Wessels <wessels@dont-contact.us>
Date: Mon, 17 Sep 2001 21:50:31 -0600 (MDT)

    if ((nonce = hash_lookup(digest_nonce_cache, nonceb64)))
        while ((strcmp(nonce->hash.key, nonceb64)) && (nonce->next))
            nonce = nonce->next;

why the while loop after hash_lookup()?

hash_lookup() returns the thing you want, or NULL. The hash table
"user" shouldn't be walking the linked list.
Received on Mon Sep 17 2001 - 21:50:32 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:21 MST