summaryrefslogtreecommitdiff
path: root/whois.c
diff options
context:
space:
mode:
authorMarco d'Itri <md@linux.it>2015-08-30 01:18:17 +0200
committerMarco d'Itri <md@linux.it>2015-08-30 01:18:17 +0200
commitea2eb4442148579be0dec4c18c3033ddd2d4ac32 (patch)
treede29173c7ed59edffdc20df5e26a84b2fee53d91 /whois.c
parentc9908493221f25e8968dae98206182c35dfeeea1 (diff)
downloadwhois-ea2eb4442148579be0dec4c18c3033ddd2d4ac32.tar.gz
Fix the --select-types and --sources long options
This bug was found by the awesome american fuzzy lop!
Diffstat (limited to 'whois.c')
-rw-r--r--whois.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/whois.c b/whois.c
index 903a89d..49df0ad 100644
--- a/whois.c
+++ b/whois.c
@@ -102,9 +102,9 @@ int main(int argc, char *argv[])
{"no-referenced", no_argument, NULL, 'r'},
{"no-filtering", no_argument, NULL, 'B'},
{"no-grouping", no_argument, NULL, 'G'},
- {"select-types", no_argument, NULL, 'T'},
+ {"select-types", required_argument, NULL, 'T'},
{"all-sources", no_argument, NULL, 'a'},
- {"sources", no_argument, NULL, 's'},
+ {"sources", required_argument, NULL, 's'},
{"types", no_argument, NULL, 12 }, /* -q */
{"ripe-version", no_argument, NULL, 12 }, /* -q */
{"list-sources", no_argument, NULL, 12 }, /* -q */