summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>1999-11-28 16:43:00 +0000
committerMartin Baulig <martin@src.gnome.org>1999-11-28 16:43:00 +0000
commit64b3db2dc05503fcdfcf4f75956d6fdad4b030ab (patch)
tree57e17435546330cf359408f78d9f66fc58fb3446
parente94b4882b6fd509180e568b8f1cc7c9e9a453678 (diff)
downloadlibgtop-64b3db2dc05503fcdfcf4f75956d6fdad4b030ab.tar.gz
**** Merged from Hardangervidda ****
1999-11-28 Martin Baulig <martin@home-of-linux.org> * gnuserv.c (setup_table): Don't dump core when the table of permitted host names contains a NULL pointer.
-rw-r--r--src/daemon/ChangeLog5
-rw-r--r--src/daemon/gnuserv.c2
2 files changed, 7 insertions, 0 deletions
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 <martin@home-of-linux.org>
+
+ * gnuserv.c (setup_table): Don't dump core when the table of
+ permitted host names contains a NULL pointer.
+
1999-07-29 Martin Baulig <martin@home-of-linux.org>
* 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]);