diff options
author | Niels Provos <provos@cvs.openbsd.org> | 2000-12-15 02:42:10 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 2000-12-15 02:42:10 +0000 |
commit | 2432aed3ddeab374356a9cb597da027b9676a281 (patch) | |
tree | 3a708cb8bb8bddeb786cc763c55da961c617ed41 /sbin/photurisd/handle_cookie_response.c | |
parent | c72bae0731852b536fecc600798b101c0d585837 (diff) |
more cleanup; send SPI needed message if we have state but no SPI on
acquire.
Diffstat (limited to 'sbin/photurisd/handle_cookie_response.c')
-rw-r--r-- | sbin/photurisd/handle_cookie_response.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sbin/photurisd/handle_cookie_response.c b/sbin/photurisd/handle_cookie_response.c index 2b20115b624..b815e2a3cc8 100644 --- a/sbin/photurisd/handle_cookie_response.c +++ b/sbin/photurisd/handle_cookie_response.c @@ -34,7 +34,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: handle_cookie_response.c,v 1.3 2000/12/11 21:21:17 provos Exp $"; +static char rcsid[] = "$Id: handle_cookie_response.c,v 1.4 2000/12/15 02:42:08 provos Exp $"; #endif #include <stdio.h> @@ -68,12 +68,7 @@ handle_cookie_response(u_char *packet, int size, header = (struct cookie_response *) packet; /* Take multi home hosts into account */ - st = state_root(); - while(st != NULL) { - if (!bcmp(header->icookie,st->icookie,COOKIE_SIZE)) - break; - st = st->next; - } + st = state_find_icookie(header->icookie); if (st == NULL) return -1; /* Silently discard - XXX log perhaps ? */ |