Page MenuHomeFreeBSD

D33226.diff
No OneTemporary

D33226.diff

diff --git a/sys/netipsec/xform_tcp.c b/sys/netipsec/xform_tcp.c
--- a/sys/netipsec/xform_tcp.c
+++ b/sys/netipsec/xform_tcp.c
@@ -251,7 +251,7 @@
* th pointer to TCP header
* buf pointer to storage for computed MD5 digest
*
- * Return 0 if successful, otherwise return -1.
+ * Return 0 if successful, otherwise return error code.
*/
static int
tcp_ipsec_input(struct mbuf *m, struct tcphdr *th, u_char *buf)
@@ -267,7 +267,7 @@
sav = key_allocsa_tcpmd5(&saidx);
if (sav == NULL) {
KMOD_TCPSTAT_INC(tcps_sig_err_buildsig);
- return (EACCES);
+ return (ENOENT);
}
/*
* tcp_input() operates with TCP header fields in host
@@ -307,7 +307,7 @@
sav = key_allocsa_tcpmd5(&saidx);
if (sav == NULL) {
KMOD_TCPSTAT_INC(tcps_sig_err_buildsig);
- return (EACCES);
+ return (ENOENT);
}
tcp_signature_compute(m, th, sav, buf);
key_freesav(&sav);

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 20, 2:25 PM (6 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14740361
Default Alt Text
D33226.diff (877 B)

Event Timeline