diff options
author | Rob Landley <rob@landley.net> | 2014-02-28 23:04:57 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2014-02-28 23:04:57 -0600 |
commit | da60b9b163a598ae97d7566f095d5d69f53a6dab (patch) | |
tree | 7ee3058cf19dbf707d1ed7ea10c3761416a76b61 /toys/other/ifconfig.c | |
parent | 170c397576f7d34f41dc7579a3ed5bd6a2f30c1a (diff) | |
download | toybox-da60b9b163a598ae97d7566f095d5d69f53a6dab.tar.gz |
Fix two bugs reported by Ashwini Sharma.
Diffstat (limited to 'toys/other/ifconfig.c')
-rw-r--r-- | toys/other/ifconfig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/other/ifconfig.c b/toys/other/ifconfig.c index 36529c95..2542d791 100644 --- a/toys/other/ifconfig.c +++ b/toys/other/ifconfig.c @@ -395,7 +395,7 @@ void ifconfig_main(void) ptr = p = (char *)sock->sa_data; memset(sock, 0, sizeof(struct sockaddr)); - if (!argv[1]) { + if (argv[1]) { if (!strcmp("ether", *++argv)) sock->sa_family = ARPHRD_ETHER; else if (!strcmp("infiniband", *argv)) { sock->sa_family = ARPHRD_INFINIBAND; |