Skip to content

Commit

Permalink
master: make setting listen empty an error
Browse files Browse the repository at this point in the history
  • Loading branch information
mrannanj authored and sirainen committed Jun 14, 2016
1 parent 7789356 commit 2f83c2f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/master/master-settings.c
Expand Up @@ -432,6 +432,11 @@ master_settings_verify(void *_set, pool_t pool, const char **error_r)
unsigned int max_client_limit = set->default_client_limit;
#endif

if (*set->listen == '\0') {
*error_r = "listen can't be set empty";
return FALSE;
}

len = strlen(set->base_dir);
if (len > 0 && set->base_dir[len-1] == '/') {
/* drop trailing '/' */
Expand Down

0 comments on commit 2f83c2f

Please sign in to comment.