Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet Fix return value



details:   https://anonhg.NetBSD.org/src/rev/7aef69e90196
branches:  trunk
changeset: 821808:7aef69e90196
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Fri Feb 17 18:09:25 2017 +0000

description:
Fix return value

diffstat:

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

diffs (27 lines):

diff -r 8807b271d5cb -r 7aef69e90196 sys/netinet/ip_input.c
--- a/sys/netinet/ip_input.c    Fri Feb 17 18:07:51 2017 +0000
+++ b/sys/netinet/ip_input.c    Fri Feb 17 18:09:25 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_input.c,v 1.350 2017/02/17 04:32:10 ozaki-r Exp $   */
+/*     $NetBSD: ip_input.c,v 1.351 2017/02/17 18:09:25 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_input.c,v 1.350 2017/02/17 04:32:10 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.351 2017/02/17 18:09:25 ozaki-r Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -1619,7 +1619,7 @@
        error = 0;
 out:
        icmp_mtudisc_unlock();
-       return 0;
+       return error;
 }
 
 static int



Home | Main Index | Thread Index | Old Index