Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet tcp_signature_getsav: handle !ipsec_used case an...



details:   https://anonhg.NetBSD.org/src/rev/047a955f39c4
branches:  trunk
changeset: 329587:047a955f39c4
user:      rmind <rmind%NetBSD.org@localhost>
date:      Fri May 30 02:27:29 2014 +0000

description:
tcp_signature_getsav: handle !ipsec_used case and fix the build (hi christos!).

diffstat:

 sys/netinet/tcp_input.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 3f478b4aca41 -r 047a955f39c4 sys/netinet/tcp_input.c
--- a/sys/netinet/tcp_input.c   Fri May 30 02:17:01 2014 +0000
+++ b/sys/netinet/tcp_input.c   Fri May 30 02:27:29 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tcp_input.c,v 1.332 2014/05/30 01:39:03 christos Exp $ */
+/*     $NetBSD: tcp_input.c,v 1.333 2014/05/30 02:27:29 rmind Exp $    */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -148,7 +148,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.332 2014/05/30 01:39:03 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.333 2014/05/30 02:27:29 rmind Exp $");
 
 #include "opt_inet.h"
 #include "opt_ipsec.h"
@@ -3170,6 +3170,7 @@
                 */
                return KEY_ALLOCSA(&dst, IPPROTO_TCP, htonl(TCP_SIG_SPI), 0, 0);
        }
+       return NULL;
 #else
        if (ip)
                return key_allocsa(AF_INET, (void *)&ip->ip_src,



Home | Main Index | Thread Index | Old Index