git://git.jankratochvil.net
/
gnome-vfs-httpcaptive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4c1b70e
)
Fixed crash on failed HTTP request.
author
short
<>
Wed, 17 Sep 2003 08:13:48 +0000
(08:13 +0000)
committer
short
<>
Wed, 17 Sep 2003 08:13:48 +0000
(08:13 +0000)
modules/http-method.c
patch
|
blob
|
history
diff --git
a/modules/http-method.c
b/modules/http-method.c
index
cc40202
..
c9de671
100644
(file)
--- a/
modules/http-method.c
+++ b/
modules/http-method.c
@@
-1516,6
+1516,7
@@
make_request (HttpFileHandle *handle,
gboolean proxy_connect;
char *authn_header_request;
char *authn_header_proxy;
gboolean proxy_connect;
char *authn_header_request;
char *authn_header_proxy;
+ gboolean handle_valid = FALSE;
g_return_val_if_fail (handle != NULL, GNOME_VFS_ERROR_INTERNAL);
g_return_val_if_fail (handle != NULL, GNOME_VFS_ERROR_INTERNAL);
@@
-1596,6
+1597,7
@@
make_request (HttpFileHandle *handle,
/* Read the headers and create our internal HTTP file handle. */
result = create_handle (uri, socket_buffer, context, handle);
/* Read the headers and create our internal HTTP file handle. */
result = create_handle (uri, socket_buffer, context, handle);
+ handle_valid = TRUE;
if (result == GNOME_VFS_OK) {
socket_buffer = NULL;
if (result == GNOME_VFS_OK) {
socket_buffer = NULL;
@@
-1613,15
+1615,15
@@
make_request (HttpFileHandle *handle,
break;
}
http_file_handle_destroy (handle);
break;
}
http_file_handle_destroy (handle);
- handle
= NULL
;
+ handle
_valid = FALSE
;
}
g_free (authn_header_request);
g_free (authn_header_proxy);
}
g_free (authn_header_request);
g_free (authn_header_proxy);
- if (result != GNOME_VFS_OK && handle
!= NULL
) {
+ if (result != GNOME_VFS_OK && handle
_valid
) {
http_file_handle_destroy (handle);
http_file_handle_destroy (handle);
- handle
= NULL
;
+ handle
_valid = FALSE
;
}
if (request != NULL) {
}
if (request != NULL) {