summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>1999-11-28 16:43:30 +0000
committerMartin Baulig <martin@src.gnome.org>1999-11-28 16:43:30 +0000
commit776b6965fba644be21ddfa1a0d6b739e52c011cc (patch)
tree1467d1fb9e403beae882a29d76f7fcb9c98030c5 /src
parentaeeef43f4547b5ae14e1b798f37ea2e81f757376 (diff)
downloadlibgtop-776b6965fba644be21ddfa1a0d6b739e52c011cc.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.
Diffstat (limited to 'src')
-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 75f6ac3c..32900d1f 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-10-24 Martin Baulig <martin@home-of-linux.org>
* io.c (do_output): Added additional `int' parameter for the
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]);