Skip to content

Commit

Permalink
reject -h if not a canonical name
Browse files Browse the repository at this point in the history
  • Loading branch information
itojun committed Jun 4, 2000
1 parent 3c35007 commit a15fdf6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kame/kame/mdnsd/mdnsd.c
@@ -1,4 +1,4 @@
/* $KAME: mdnsd.c,v 1.23 2000/06/01 10:33:25 itojun Exp $ */
/* $KAME: mdnsd.c,v 1.24 2000/06/04 00:59:50 itojun Exp $ */

/*
* Copyright (C) 2000 WIDE Project.
Expand Down Expand Up @@ -115,6 +115,10 @@ main(argc, argv)
fflag++;
break;
case 'h':
if (iscanon(optarg) == 0) {
errx(1, "%s: not a canonical name", optarg);
/*NOTREACHED*/
}
hostname = optarg;
break;
case 'i':
Expand Down

0 comments on commit a15fdf6

Please sign in to comment.