Skip to content
Snippets Groups Projects
Commit b9a30598 authored by Yang Tse's avatar Yang Tse
Browse files

File is not a protocol that can deal with "persistancy"

parent 8e7da946
No related branches found
Tags curl-7_9_3
No related merge requests found
......@@ -149,6 +149,16 @@ CURLcode Curl_file_connect(struct connectdata *conn)
}
data->reqdata.proto.file = file;
}
else {
/* file is not a protocol that can deal with "persistancy" */
file = data->reqdata.proto.file;
Curl_safefree(file->freepath);
if(file->fd != -1)
close(file->fd);
file->path = NULL;
file->freepath = NULL;
file->fd = -1;
}
#if defined(WIN32) || defined(MSDOS) || defined(__EMX__)
/* If the first character is a slash, and there's
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment