projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e7da94
)
File is not a protocol that can deal with "persistancy"
author
Yang Tse
<yangsita@gmail.com>
Tue, 23 Oct 2007 15:16:46 +0000
(15:16 +0000)
committer
Yang Tse
<yangsita@gmail.com>
Tue, 23 Oct 2007 15:16:46 +0000
(15:16 +0000)
lib/file.c
patch
|
blob
|
history
diff --git
a/lib/file.c
b/lib/file.c
index
bce92bd
..
0bc0e49
100644
(file)
--- a/
lib/file.c
+++ b/
lib/file.c
@@
-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