changeset 14653:47ebcf37af3d

auth: Minor code cleanup
author Timo Sirainen <tss@iki.fi>
date Wed, 01 Aug 2012 21:14:30 +0300
parents 8518f8b5a28b
children d499f6d0ca68
files src/auth/auth-cache.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/auth/auth-cache.c	Wed Aug 01 20:37:05 2012 +0300
+++ b/src/auth/auth-cache.c	Wed Aug 01 21:14:30 2012 +0300
@@ -305,7 +305,7 @@
 	for (node = cache->tail; node != NULL; node = next) {
 		next = node->next;
 		if (auth_cache_node_is_one_of_users(node, usernames)) {
-			auth_cache_node_destroy(cache, cache->tail);
+			auth_cache_node_destroy(cache, node);
 			ret++;
 		}
 	}