summaryrefslogtreecommitdiff
path: root/nest
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>1999-10-02 10:44:48 +0000
committerPavel Machek <pavel@ucw.cz>1999-10-02 10:44:48 +0000
commitac40c888c21c72ae7f6c3d329dd2ba5417eec009 (patch)
tree028e6a4399941eef43afbbf68812aec7fbc92c59 /nest
parent7db7b7db603a2d852066c313da76c72673a204fa (diff)
Obvious bugs in authentication fixed.
Diffstat (limited to 'nest')
-rw-r--r--nest/config.Y6
-rw-r--r--nest/password.c1
2 files changed, 4 insertions, 3 deletions
diff --git a/nest/config.Y b/nest/config.Y
index dfef4e27..91cdad11 100644
--- a/nest/config.Y
+++ b/nest/config.Y
@@ -159,7 +159,7 @@ password_begin:
last_password_item = cfg_alloc(sizeof (struct password_item));
last_password_item->password = $2;
last_password_item->from = 0;
- last_password_item->to = ~0;
+ last_password_item->to = 2000000000;
last_password_item->id = 0;
last_password_item->next = NULL;
$$=last_password_item;
@@ -177,8 +177,8 @@ password_items:
password_list:
/* empty */ { $$ = NULL; }
| password_begin password_items ';' password_list {
- last_password_item->next = $4;
- $$ = last_password_item;
+ $1->next = $4;
+ $$ = $1;
}
;
diff --git a/nest/password.c b/nest/password.c
index f0f433ab..6a020287 100644
--- a/nest/password.c
+++ b/nest/password.c
@@ -35,6 +35,7 @@ get_best_password(struct password_item *head, int flags)
good = cur;
best = head;
}
+ head=head->next;
}
return best;
}