diff options
author | Ondrej Filip <feela@network.cz> | 2004-07-13 15:52:54 +0200 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2004-07-13 15:52:54 +0200 |
commit | 32d3228d864cb6af8c679a7742f4b0a71c2facc0 (patch) | |
tree | 45e26bf02ae4223a3dc7d2bc7ea46d18a9cbe0ca /nest | |
parent | 12dd8dc8779c13889a6860b769df7e0d68e7764c (diff) | |
download | bird-32d3228d864cb6af8c679a7742f4b0a71c2facc0.tar bird-32d3228d864cb6af8c679a7742f4b0a71c2facc0.zip |
Bugfix in simple authentification.
Diffstat (limited to 'nest')
-rw-r--r-- | nest/password.c | 4 |
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)); } |