Somebody claiming to be Max Kellermann wrote:
> On 2009/04/07 01:39, Stephen Paul Weber <singpol...@singpolyma.net> wrote:
> > Yes, this is exactly the functionality I had in mind :)
> 
> OK, understand.  While I'm not interested in that feature, I
> understand others are, and I'd be willing to merge that.

Attached is another patch, for a small bug I found in my code.

-- 
Stephen Paul Weber, @singpolyma
Please see <http://singpolyma.net> for how I prefer to be contacted.
nerve perfume pogo.
commit 65f9f75231fccbd28a2a55a74692b27696c215a3
Author: Stephen Paul Weber <singpol...@singpolyma.net>
Date:   Tue Apr 7 14:01:59 2009 -0400

    Fix bug when connection fails

diff --git a/src/as.c b/src/as.c
index 0fb4959..629d351 100644
--- a/src/as.c
+++ b/src/as.c
@@ -207,6 +207,7 @@ static void as_handshake_callback(size_t length, const char *response, void *dat
 	bool ret;
 	struct config_as_host *as_host = data;
 
+	assert(as_host);
 	assert(as_host->g_state == AS_HANDSHAKING);
 	as_host->g_state = AS_NOTHING;
 
diff --git a/src/conn.c b/src/conn.c
index e87a998..6214d82 100644
--- a/src/conn.c
+++ b/src/conn.c
@@ -57,6 +57,7 @@ conn_callback(SoupMessage * msg, gpointer data)
 
 	g.pending = false;
 
+	/* NOTE: does not support redirects */
 	if (SOUP_STATUS_IS_SUCCESSFUL(msg->status_code)) {
 #ifdef HAVE_SOUP_24
 		g.callback(msg->response_body->length,
@@ -65,7 +66,7 @@ conn_callback(SoupMessage * msg, gpointer data)
 		g.callback(msg->response.length, msg->response.body, data);
 #endif
 	} else
-		g.callback(0, NULL, NULL);
+		g.callback(0, NULL, data);
 }
 
 void conn_setup(void)

Attachment: signature.asc
Description: Digital signature

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Musicpd-dev-team mailing list
Musicpd-dev-team@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team

Reply via email to