Source-Changes-HG archive

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

[src/trunk]: src/sys/dist/pf/net In pf_socket_lookup() fix copy & paste probl...



details:   https://anonhg.NetBSD.org/src/rev/261e68fad8b9
branches:  trunk
changeset: 588098:261e68fad8b9
user:      rpaulo <rpaulo%NetBSD.org@localhost>
date:      Tue Feb 07 22:53:03 2006 +0000

description:
In pf_socket_lookup() fix copy & paste problem when in6_pcblookup_bind()
returns NULL.

diffstat:

 sys/dist/pf/net/pf.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 42251be7973f -r 261e68fad8b9 sys/dist/pf/net/pf.c
--- a/sys/dist/pf/net/pf.c      Tue Feb 07 20:38:43 2006 +0000
+++ b/sys/dist/pf/net/pf.c      Tue Feb 07 22:53:03 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pf.c,v 1.19 2005/12/11 12:24:25 christos Exp $ */
+/*     $NetBSD: pf.c,v 1.20 2006/02/07 22:53:03 rpaulo Exp $   */
 /*     $OpenBSD: pf.c,v 1.483 2005/03/15 17:38:43 dhartmei Exp $ */
 
 /*
@@ -2577,7 +2577,7 @@
                    dport, 0);
                if (in6p == NULL) {
                        in6p = in6_pcblookup_bind(tb, &daddr->v6, dport, 0);
-                       if (inp == NULL)
+                       if (in6p == NULL)
                                return (0);
                }
 #endif



Home | Main Index | Thread Index | Old Index