aboutsummaryrefslogtreecommitdiff
path: root/src/hostlist
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-06-11 22:33:24 +0000
committerChristian Grothoff <christian@grothoff.org>2010-06-11 22:33:24 +0000
commit464d2cbfa3c56bd11c78667fc6e2f0a960f02f92 (patch)
tree0d5ffb0a36890fc58bf1b53b4ef872c8f5f68279 /src/hostlist
parent4094407e04c6cfc3b944301467f1249cdc59954c (diff)
downloadgnunet-464d2cbfa3c56bd11c78667fc6e2f0a960f02f92.tar.gz
gnunet-464d2cbfa3c56bd11c78667fc6e2f0a960f02f92.zip
minor fixes
Diffstat (limited to 'src/hostlist')
-rw-r--r--src/hostlist/hostlist-server.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/hostlist/hostlist-server.c b/src/hostlist/hostlist-server.c
index 055c90bab..8d4d38d09 100644
--- a/src/hostlist/hostlist-server.c
+++ b/src/hostlist/hostlist-server.c
@@ -597,11 +597,19 @@ GNUNET_HOSTLIST_server_start (const struct GNUNET_CONFIGURATION_Handle *c,
597 _("Could not access PEERINFO service. Exiting.\n")); 597 _("Could not access PEERINFO service. Exiting.\n"));
598 return GNUNET_SYSERR; 598 return GNUNET_SYSERR;
599 } 599 }
600 if (-1 == GNUNET_CONFIGURATION_get_value_number (cfg, 600 if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_number (cfg,
601 "HOSTLIST", 601 "HOSTLIST",
602 "HTTPPORT", 602 "HTTPPORT",
603 &port)) 603 &port))
604 return GNUNET_SYSERR; 604 return GNUNET_SYSERR;
605 if ( (port == 0) ||
606 (port > UINT16_MAX) )
607 {
608 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
609 _("Invalid port number %llu. Exiting.\n"),
610 port);
611 return GNUNET_SYSERR;
612 }
605 613
606 if ( GNUNET_SYSERR == GNUNET_CONFIGURATION_get_value_string (cfg, 614 if ( GNUNET_SYSERR == GNUNET_CONFIGURATION_get_value_string (cfg,
607 "HOSTLIST", 615 "HOSTLIST",