summaryrefslogtreecommitdiff
path: root/sbin/photurisd/handle_cookie_response.c
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>2000-12-11 02:16:52 +0000
committerNiels Provos <provos@cvs.openbsd.org>2000-12-11 02:16:52 +0000
commitcfd74042b68880653d0f7ed8ea053c8f412e2ff4 (patch)
tree49dcb1629d5f32511b84dc43c89bb0076b875417 /sbin/photurisd/handle_cookie_response.c
parent31961be8cac921b7a23b2fc5d29708250a64e62d (diff)
make it use bignum.
Diffstat (limited to 'sbin/photurisd/handle_cookie_response.c')
-rw-r--r--sbin/photurisd/handle_cookie_response.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/photurisd/handle_cookie_response.c b/sbin/photurisd/handle_cookie_response.c
index 03650e074cd..c5e897d649b 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.1 1998/11/14 23:37:23 deraadt Exp $";
+static char rcsid[] = "$Id: handle_cookie_response.c,v 1.2 2000/12/11 02:16:50 provos Exp $";
#endif
#include <stdio.h>
@@ -91,15 +91,15 @@ handle_cookie_response(u_char *packet, int size,
/* Check scheme size */
p = COOKIE_RESPONSE_SCHEMES(header);
i = 0;
- while(i<size-COOKIE_RESPONSE_MIN) {
+ while (i < size - COOKIE_RESPONSE_MIN) {
if ((n = scheme_get_len(p + i)) == 0)
break;
i += n;
}
- if (i != size-COOKIE_RESPONSE_MIN) {
+ if (i != size - COOKIE_RESPONSE_MIN) {
log_error(0, "schemes corrupt in handle_cookie_response()");
- return -1; /* Size didn't match UDP size */
+ return (-1); /* Size didn't match UDP size */
}
/* Copy responder cookies and offered schemes */