diff options
| author | Sam Leffler <sam@FreeBSD.org> | 2003-01-30 05:53:28 +0000 |
|---|---|---|
| committer | Sam Leffler <sam@FreeBSD.org> | 2003-01-30 05:53:28 +0000 |
| commit | df84c476d27088e83d49558883f5b36d51e3427b (patch) | |
| tree | b584f4210c99a989ceb8adeba03b700b75ae9a5b /sys/netinet | |
| parent | fcd6c9e2406c17ccb2d98edf95728b3d0e7f107f (diff) | |
Notes
Diffstat (limited to 'sys/netinet')
| -rw-r--r-- | sys/netinet/ip_output.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index f8cbafd24553..0d22f7437f20 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -656,6 +656,15 @@ skip_ipsec: /* NB: callee frees mbuf */ error = ipsec4_process_packet(m, sp->req, flags, 0); + /* + * Preserve KAME behaviour: ENOENT can be returned + * when an SA acquire is in progress. Don't propagate + * this to user-level; it confuses applications. + * + * XXX this will go away when the SADB is redone. + */ + if (error == ENOENT) + error = 0; splx(s); goto done; } else { |
