diff --git a/src/bind_config.c b/src/bind_config.c index 020dff62..4c891c95 100644 --- a/src/bind_config.c +++ b/src/bind_config.c @@ -301,7 +301,12 @@ ssh_bind_config_parse_line(ssh_bind bind, return -1; } - if ((line == NULL) || (parser_flags == NULL)) { + /* Ignore empty lines */ + if (line == NULL || *line == '\0') { + return 0; + } + + if (parser_flags == NULL) { ssh_set_error_invalid(bind); return -1; }