From 2432aed3ddeab374356a9cb597da027b9676a281 Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Fri, 15 Dec 2000 02:42:10 +0000 Subject: more cleanup; send SPI needed message if we have state but no SPI on acquire. --- sbin/photurisd/handle_cookie_response.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'sbin/photurisd/handle_cookie_response.c') 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 @@ -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 ? */ -- cgit v1.2.3