summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/net/if_mobileip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_mobileip.c b/sys/net/if_mobileip.c
index 28f8bbbefd2..0eacbeb8420 100644
--- a/sys/net/if_mobileip.c
+++ b/sys/net/if_mobileip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_mobileip.c,v 1.2 2018/02/07 05:59:00 dlg Exp $ */
+/* $OpenBSD: if_mobileip.c,v 1.3 2018/02/07 06:02:01 dlg Exp $ */
/*
* Copyright (c) 2016 David Gwynne <dlg@openbsd.org>
@@ -357,7 +357,7 @@ mobileip_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
if (!ISSET(ifp->if_flags, IFF_RUNNING))
error = mobileip_up(sc);
else
- error = ENETRESET;
+ error = 0;
} else {
if (ISSET(ifp->if_flags, IFF_RUNNING))
error = mobileip_down(sc);