From e4a896be6bcdd2dfcf58bbda73cad54602452a4d Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Thu, 17 Jan 2008 17:18:28 +0000 Subject: Fix "dhcrelay --version" [rt17350] --- relay/dhcrelay.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'relay') diff --git a/relay/dhcrelay.c b/relay/dhcrelay.c index 3df1a586..02e28999 100644 --- a/relay/dhcrelay.c +++ b/relay/dhcrelay.c @@ -194,11 +194,11 @@ main(int argc, char **argv) { usage (); } else if (!strcmp (argv [i], "-D")) { drop_agent_mismatches = 1; - } else if (argv [i][0] == '-') { - usage (); } else if (!strcmp (argv [i], "--version")) { log_info ("isc-dhcrelay-%s", PACKAGE_VERSION); exit (0); + } else if (argv [i][0] == '-') { + usage (); } else { struct hostent *he; struct in_addr ia, *iap = (struct in_addr *)0; -- cgit v1.2.1