summaryrefslogtreecommitdiffstats
path: root/bus/config-parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'bus/config-parser.c')
-rw-r--r--bus/config-parser.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/bus/config-parser.c b/bus/config-parser.c
index 972c05ac..bf4f6f7b 100644
--- a/bus/config-parser.c
+++ b/bus/config-parser.c
@@ -828,6 +828,13 @@ bus_config_parser_finished (BusConfigParser *parser,
return FALSE;
}
+
+ if (parser->listen_on == NULL)
+ {
+ dbus_set_error (error, DBUS_ERROR_FAILED,
+ "Configuration file needs one or more <listen> elements giving addresses");
+ return FALSE;
+ }
return TRUE;
}
@@ -838,6 +845,12 @@ bus_config_parser_get_user (BusConfigParser *parser)
return parser->user;
}
+DBusList**
+bus_config_parser_get_addresses (BusConfigParser *parser)
+{
+ return &parser->listen_on;
+}
+
#ifdef DBUS_BUILD_TESTS
#include <stdio.h>