Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet Fix error path



details:   https://anonhg.NetBSD.org/src/rev/da5fff84855b
branches:  trunk
changeset: 344777:da5fff84855b
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Tue Apr 19 09:36:35 2016 +0000

description:
Fix error path

diffstat:

 sys/netinet/ip_output.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 72b02a00a133 -r da5fff84855b sys/netinet/ip_output.c
--- a/sys/netinet/ip_output.c   Tue Apr 19 09:29:54 2016 +0000
+++ b/sys/netinet/ip_output.c   Tue Apr 19 09:36:35 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_output.c,v 1.250 2016/04/19 09:29:54 ozaki-r Exp $  */
+/*     $NetBSD: ip_output.c,v 1.251 2016/04/19 09:36:35 ozaki-r Exp $  */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -91,7 +91,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_output.c,v 1.250 2016/04/19 09:29:54 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_output.c,v 1.251 2016/04/19 09:36:35 ozaki-r Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -289,7 +289,7 @@
 out:
        error = ip_mark_mpls(ifp, m, rt0);
        if (error != 0)
-               return error;
+               goto bad;
 
        error = klock_if_output(ifp, m, dst, rt);
        goto exit;



Home | Main Index | Thread Index | Old Index