diff options
author | dougb <dougb@FreeBSD.org> | 2011-03-03 01:42:25 +0800 |
---|---|---|
committer | dougb <dougb@FreeBSD.org> | 2011-03-03 01:42:25 +0800 |
commit | db59b4460fcf45deda5911639b19a4260a79448b (patch) | |
tree | 7e55bc39cf7480a1cc0435f391546c31404f3068 /net-im | |
parent | aa25fecf85a964517950fb2db74c7685d5463761 (diff) | |
download | freebsd-ports-gnome-db59b4460fcf45deda5911639b19a4260a79448b.tar.gz freebsd-ports-gnome-db59b4460fcf45deda5911639b19a4260a79448b.tar.zst freebsd-ports-gnome-db59b4460fcf45deda5911639b19a4260a79448b.zip |
Add a patch from the svn repo to handle a crash while using https
https://code.google.com/p/microblog-purple/issues/detail?id=200
https://code.google.com/p/microblog-purple/issues/detail?id=212
Obtained from: e.a.agaf...@gmail.com
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/mbpurple/Makefile | 1 | ||||
-rw-r--r-- | net-im/mbpurple/files/patch-microblog__mb_net.c | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/net-im/mbpurple/Makefile b/net-im/mbpurple/Makefile index 27ac66ad6164..3329f2c4dc21 100644 --- a/net-im/mbpurple/Makefile +++ b/net-im/mbpurple/Makefile @@ -6,6 +6,7 @@ PORTNAME= mbpurple PORTVERSION= 0.3.0 +PORTREVISION= 1 CATEGORIES= net-im MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} diff --git a/net-im/mbpurple/files/patch-microblog__mb_net.c b/net-im/mbpurple/files/patch-microblog__mb_net.c new file mode 100644 index 000000000000..818c30cb2e7f --- /dev/null +++ b/net-im/mbpurple/files/patch-microblog__mb_net.c @@ -0,0 +1,19 @@ +diff --git a/microblog/mb_net.c b/microblog/mb_net.c +index 2752aba..962ac1f 100644 +--- microblog/mb_net.c ++++ microblog/mb_net.c +@@ -160,13 +160,13 @@ void mb_conn_fetch_url_cb(PurpleUtilFetchUrlData * url_data, gpointer user_data, + conn_data->fetch_url_data = NULL;
+
+ if(error_message != NULL) {
+- mb_conn_data_free(conn_data);
+ if(conn_data->handler) {
+ retval = conn_data->handler(conn_data, conn_data->handler_data, error_message);
+ }
+ if(ma->gc != NULL) {
+ purple_connection_error_reason(ma->gc, PURPLE_CONNECTION_ERROR_NETWORK_ERROR, error_message);
+ }
++ mb_conn_data_free(conn_data);
+ } else {
+ mb_http_data_post_read(conn_data->response, url_text, len);
+ if(conn_data->handler) {
|