summaryrefslogtreecommitdiff
path: root/src/ne_auth.c
diff options
context:
space:
mode:
authorjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2007-07-14 08:55:32 +0000
committerjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2007-07-14 08:55:32 +0000
commit023eec3af1d7323a35bff34ece85239fca1e7e07 (patch)
tree8c6382833033e66303c4e3be142d8f5ef5cedf12 /src/ne_auth.c
parent5dc0ce8cf6be52f0dfa790c9e2c3eaff22385406 (diff)
downloadneon-023eec3af1d7323a35bff34ece85239fca1e7e07.tar.gz
* src/ne_auth.c (auth_register): Fix multiple handler use (Werner Baumann)
* test/auth.c (multi_cb, multi_handler): New test case. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1187 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'src/ne_auth.c')
-rw-r--r--src/ne_auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ne_auth.c b/src/ne_auth.c
index c13e29d..b88a433 100644
--- a/src/ne_auth.c
+++ b/src/ne_auth.c
@@ -1392,7 +1392,7 @@ static void auth_register(ne_session *sess, int isproxy, unsigned protomask,
/* Find the end of the handler list, and add a new one. */
hdl = &ahs->handlers;
- while (*hdl && (*hdl)->next)
+ while (*hdl)
hdl = &(*hdl)->next;
*hdl = ne_malloc(sizeof **hdl);