diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-09-24 16:22:09 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-09-24 16:22:09 +0000 |
commit | fd23968c29a87b0eec8e96d56d242f9bda88732f (patch) | |
tree | b4fc6ae545841860973840f1872f1f0040aa8f81 | |
parent | 623aa4987bf474a82acbd794a4dcc61f396411b4 (diff) |
Reset the error return value if the cached TDB matches the
policy. Pointed out by jdmcbride@iol.ie
-rw-r--r-- | sys/netinet/ip_spd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/ip_spd.c b/sys/netinet/ip_spd.c index 10fe1d151da..5ea865cc633 100644 --- a/sys/netinet/ip_spd.c +++ b/sys/netinet/ip_spd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_spd.c,v 1.39 2001/08/21 06:48:55 angelos Exp $ */ +/* $OpenBSD: ip_spd.c,v 1.40 2001/09/24 16:22:08 angelos Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu) * @@ -368,6 +368,7 @@ ipsp_spd_lookup(struct mbuf *m, int af, int hlen, int *error, int direction, } /* Cached entry is good. */ + *error = 0; return ipsp_spd_inp(m, af, hlen, error, direction, tdbp, inp, ipo); |