diff options
Diffstat (limited to 'sbin/isakmpd/isakmpd.c')
-rw-r--r-- | sbin/isakmpd/isakmpd.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sbin/isakmpd/isakmpd.c b/sbin/isakmpd/isakmpd.c index bdb61b733fd..f8dc4d7b7b1 100644 --- a/sbin/isakmpd/isakmpd.c +++ b/sbin/isakmpd/isakmpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isakmpd.c,v 1.61 2004/04/15 18:39:26 deraadt Exp $ */ +/* $OpenBSD: isakmpd.c,v 1.62 2004/05/19 14:30:26 ho Exp $ */ /* $EOM: isakmpd.c,v 1.54 2000/10/05 09:28:22 niklas Exp $ */ /* @@ -40,6 +40,7 @@ #include <stdlib.h> #include <string.h> #include <time.h> +#include <netdb.h> #include <unistd.h> #include <fcntl.h> @@ -376,6 +377,10 @@ main(int argc, char *argv[]) parse_args(argc, argv); log_init(debug); + /* Open protocols and services databases. */ + setprotoent(1); + setservent(1); + /* * Do a clean daemon shutdown on TERM/INT. These signals must be * initialized before monitor_init(). INT is only used with '-d'. |