summaryrefslogtreecommitdiffstats
path: root/nest
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2004-07-13 15:52:54 +0200
committerOndrej Filip <feela@network.cz>2004-07-13 15:52:54 +0200
commit32d3228d864cb6af8c679a7742f4b0a71c2facc0 (patch)
tree45e26bf02ae4223a3dc7d2bc7ea46d18a9cbe0ca /nest
parent12dd8dc8779c13889a6860b769df7e0d68e7764c (diff)
downloadbird-32d3228d864cb6af8c679a7742f4b0a71c2facc0.tar
bird-32d3228d864cb6af8c679a7742f4b0a71c2facc0.zip
Bugfix in simple authentification.
Diffstat (limited to 'nest')
-rw-r--r--nest/password.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nest/password.c b/nest/password.c
index 0bc38f1..7f1c8dc 100644
--- a/nest/password.c
+++ b/nest/password.c
@@ -22,7 +22,7 @@ password_find(list *l)
{
WALK_LIST(pi, *l)
{
- if ((pi->genfrom > now) && (pi->gento < now))
+ if ((pi->genfrom < now) && (pi->gento > now))
return pi;
}
}
@@ -32,6 +32,6 @@ password_find(list *l)
void password_cpy(char *dst, char *src, int size)
{
bzero(dst, size);
- memcpy(dst, src, strlen(src) < (unsigned) size ? strlen(src) : (unsigned) size);
+ memcpy(dst, src, (strlen(src) < (unsigned) size ? strlen(src) : (unsigned) size));
}