diff --git a/src/configuration.c b/src/configuration.c index 86f8f6c8..6f897543 100644 --- a/src/configuration.c +++ b/src/configuration.c @@ -934,6 +934,8 @@ int parse_config_file(const char *path) { bindaddr_t *new_empty_bindaddr(void) { bindaddr_t *ba; ba = malloc(sizeof(bindaddr_t)); + if (!ba) + return NULL; memset(ba, 0, sizeof(*ba)); ba->type = BIND_ADDR_TCP; ba->service = strdup("5140");