aboutsummaryrefslogtreecommitdiff
path: root/sbin/route/route.c
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2013-06-09 17:40:06 +0000
committerHiroki Sato <hrs@FreeBSD.org>2013-06-09 17:40:06 +0000
commit7df84c2b747eabaf2b6679ae313c5335022a0d90 (patch)
tree883ed77010bba308fb140af727d80bff42ea9934 /sbin/route/route.c
parentc0f826e65282c0fc5f0b4c08bbf87d53358bc2d1 (diff)
downloadsrc-7df84c2b747eabaf2b6679ae313c5335022a0d90.tar.gz
src-7df84c2b747eabaf2b6679ae313c5335022a0d90.zip
Fix a bug that the gateway address was not shown when a -gateway modifier
was used.
Notes
Notes: svn path=/head/; revision=251581
Diffstat (limited to 'sbin/route/route.c')
-rw-r--r--sbin/route/route.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c
index 48f90a768d23..c751657de275 100644
--- a/sbin/route/route.c
+++ b/sbin/route/route.c
@@ -848,6 +848,7 @@ newroute(int argc, char **argv)
if (!--argc)
usage(NULL);
getaddr(RTA_GATEWAY, *++argv, 0, nrflags);
+ gateway = *argv;
break;
case K_DST:
if (!--argc)