summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2002-06-18 22:48:17 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2002-06-18 22:48:17 +0000
commit3deff487ed8cfae54a90761ad362e7eed522977e (patch)
tree9884dadc89a8b65238b3c49f9771dac81cc888c2
parent0844b008655d714d96bb2a0a70156cbb545c7153 (diff)
Initialize mo to NULL, for good measure -- sam@errno.com
-rw-r--r--sys/netinet/ip_ah.c3
-rw-r--r--sys/netinet/ip_esp.c3
-rw-r--r--sys/netinet/ip_ipcomp.c3
3 files changed, 6 insertions, 3 deletions
diff --git a/sys/netinet/ip_ah.c b/sys/netinet/ip_ah.c
index dd35b0c38b9..80274c5ae7a 100644
--- a/sys/netinet/ip_ah.c
+++ b/sys/netinet/ip_ah.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ah.c,v 1.66 2002/06/18 19:21:48 angelos Exp $ */
+/* $OpenBSD: ip_ah.c,v 1.67 2002/06/18 22:48:16 angelos Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
@@ -1040,6 +1040,7 @@ ah_output(struct mbuf *m, struct tdb *tdb, struct mbuf **mp, int skip,
* Loop through mbuf chain; if we find an M_EXT mbuf with
* more than one reference, replace the rest of the chain.
*/
+ mo = NULL;
mi = m;
while (mi != NULL &&
(!(mi->m_flags & M_EXT) || !MCLISREFERENCED(mi))) {
diff --git a/sys/netinet/ip_esp.c b/sys/netinet/ip_esp.c
index 975cf803b6d..c3b6a31e194 100644
--- a/sys/netinet/ip_esp.c
+++ b/sys/netinet/ip_esp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_esp.c,v 1.71 2002/06/18 19:25:48 angelos Exp $ */
+/* $OpenBSD: ip_esp.c,v 1.72 2002/06/18 22:48:16 angelos Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
@@ -848,6 +848,7 @@ esp_output(struct mbuf *m, struct tdb *tdb, struct mbuf **mp, int skip,
* Loop through mbuf chain; if we find an M_EXT mbuf with
* more than one reference, replace the rest of the chain.
*/
+ mo = NULL;
mi = m;
while (mi != NULL &&
(!(mi->m_flags & M_EXT) || !MCLISREFERENCED(mi))) {
diff --git a/sys/netinet/ip_ipcomp.c b/sys/netinet/ip_ipcomp.c
index 38a8e1fc85e..0d928ae4983 100644
--- a/sys/netinet/ip_ipcomp.c
+++ b/sys/netinet/ip_ipcomp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ipcomp.c,v 1.4 2002/06/18 22:26:12 angelos Exp $ */
+/* $OpenBSD: ip_ipcomp.c,v 1.5 2002/06/18 22:48:16 angelos Exp $ */
/*
* Copyright (c) 2001 Jean-Jacques Bernard-Gundol (jj@wabbitt.org)
@@ -483,6 +483,7 @@ ipcomp_output(m, tdb, mp, skip, protoff)
* Loop through mbuf chain; if we find an M_EXT mbuf with
* more than one reference, replace the rest of the chain.
*/
+ mo = NULL;
mi = m;
while (mi != NULL &&
(!(mi->m_flags & M_EXT) || !MCLISREFERENCED(mi))) {