Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
gvfs.535
0001-http-Fix-segfault-when-seeking-on-read.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-http-Fix-segfault-when-seeking-on-read.patch of Package gvfs.535
From 957f11be4d02c4cb2ee8b3a1181e7973d297eea7 Mon Sep 17 00:00:00 2001 From: Ross Lagerwall <rosslagerwall@gmail.com> Date: Sun, 8 Dec 2013 12:44:06 +0200 Subject: [PATCH] http: Fix segfault when seeking on read Previously, the dav backend would segfault when reading after a seek (or also if you did a read_async() without an explicit send()/send_async() first) because the stream from soup_request_send_finish() was not being stored, so store it. https://bugzilla.gnome.org/show_bug.cgi?id=710534 --- daemon/gvfshttpinputstream.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon/gvfshttpinputstream.c b/daemon/gvfshttpinputstream.c index d7eed19..4d18bcf 100644 --- a/daemon/gvfshttpinputstream.c +++ b/daemon/gvfshttpinputstream.c @@ -330,7 +330,8 @@ read_send_callback (GObject *object, ReadAfterSendData *rasd = g_task_get_task_data (task); GError *error = NULL; - if (!soup_request_send_finish (SOUP_REQUEST (object), result, &error)) + priv->stream = soup_request_send_finish (SOUP_REQUEST (object), result, &error); + if (!priv->stream) { g_task_return_error (task, error); g_object_unref (task); -- 1.8.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor