diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-04-12 09:47:31 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-04-12 09:47:31 +0000 |
commit | c1405cb6b63a5233eeb1ca7db8fc6d64eaa8d531 (patch) | |
tree | 072cf47098c71e95a2cfa7336c61ab5a17c6c391 | |
parent | 22d04e61edff822a9b718b794e132ef8d8e7ed64 (diff) |
spaces
-rw-r--r-- | usr.sbin/ospfd/database.c | 4 | ||||
-rw-r--r-- | usr.sbin/ospfd/lsreq.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ospfd/database.c b/usr.sbin/ospfd/database.c index 1eb73b9bf97..a52e98202b5 100644 --- a/usr.sbin/ospfd/database.c +++ b/usr.sbin/ospfd/database.c @@ -1,4 +1,4 @@ -/* $OpenBSD: database.c,v 1.7 2005/04/05 13:01:21 claudio Exp $ */ +/* $OpenBSD: database.c,v 1.8 2005/04/12 09:47:30 claudio Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -101,7 +101,7 @@ send_db_description(struct nbr *nbr) /* build LSA list, keep space for a possible md5 sum */ for (le = TAILQ_FIRST(&nbr->db_sum_list); le != NULL && - buf->wpos + sizeof(struct lsa_hdr) < buf->max - + buf->wpos + sizeof(struct lsa_hdr) < buf->max - MD5_DIGEST_LENGTH; le = nle) { nbr->dd_end = nle = TAILQ_NEXT(le, entry); if (buf_add(buf, le->le_lsa, sizeof(struct lsa_hdr))) diff --git a/usr.sbin/ospfd/lsreq.c b/usr.sbin/ospfd/lsreq.c index 4298da02bb2..ec497541979 100644 --- a/usr.sbin/ospfd/lsreq.c +++ b/usr.sbin/ospfd/lsreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lsreq.c,v 1.7 2005/04/05 13:01:22 claudio Exp $ */ +/* $OpenBSD: lsreq.c,v 1.8 2005/04/12 09:47:30 claudio Exp $ */ /* * Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org> @@ -69,7 +69,7 @@ send_ls_req(struct nbr *nbr) /* LSA header(s), keep space for a possible md5 sum */ for (le = TAILQ_FIRST(&nbr->ls_req_list); le != NULL && - buf->wpos + sizeof(struct ls_req_hdr) < buf->max - + buf->wpos + sizeof(struct ls_req_hdr) < buf->max - MD5_DIGEST_LENGTH; le = nle) { nbr->ls_req = nle = TAILQ_NEXT(le, entry); ls_req_hdr.type = htonl(le->le_lsa->type); |