Commit 22754f40 authored by Colin Leitner's avatar Colin Leitner

Fixed bug in handle_directory_request, that used the unintialized path...

Fixed bug in handle_directory_request, that used the unintialized path variable instead of dir for an error message.
parent a021ebf4
......@@ -2403,7 +2403,7 @@ static void handle_directory_request(struct mg_connection *conn,
if ((dirp = opendir(dir)) == NULL) {
send_http_error(conn, 500, "Cannot open directory",
"Error: opendir(%s): %s", path, strerror(ERRNO));
"Error: opendir(%s): %s", dir, strerror(ERRNO));
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment