From da60b9b163a598ae97d7566f095d5d69f53a6dab Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 28 Feb 2014 23:04:57 -0600 Subject: Fix two bugs reported by Ashwini Sharma. --- toys/other/ifconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys') 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; -- cgit v1.2.3