From ad536313f1ab598d1233e0112204c4ac5cf2c267 Mon Sep 17 00:00:00 2001 From: Martin Baulig Date: Sun, 28 Nov 1999 16:41:26 +0000 Subject: [PATCH] Don't dump core when the table of permitted host names contains a NULL 1999-11-28 Martin Baulig * gnuserv.c (setup_table): Don't dump core when the table of permitted host names contains a NULL pointer. --- src/daemon/ChangeLog | 5 +++++ src/daemon/gnuserv.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/daemon/ChangeLog b/src/daemon/ChangeLog index f0e1d919..0c12ccc4 100644 --- a/src/daemon/ChangeLog +++ b/src/daemon/ChangeLog @@ -1,3 +1,8 @@ +1999-11-28 Martin Baulig + + * gnuserv.c (setup_table): Don't dump core when the table of + permitted host names contains a NULL pointer. + 1999-07-29 Martin Baulig * Makefile.am: Link the `libgtop_daemon' and the `libgtop_server' diff --git a/src/daemon/gnuserv.c b/src/daemon/gnuserv.c index 0ed7778d..551d2219 100644 --- a/src/daemon/gnuserv.c +++ b/src/daemon/gnuserv.c @@ -297,6 +297,8 @@ setup_table (void) /* Resolv host names from permitted_host_names []. */ for (i = 0; i < HOST_TABLE_ENTRIES; i++) { + if (!permitted_host_names [i]) + continue; if (enable_debug) syslog_message (LOG_DEBUG, "Resolving %s ...", permitted_host_names [i]);