/soc/2015/jgeboski/facebook: 1c187bd52e3c: facebook: fixed HTTP ...

James Geboski jgeboski at gmail.com
Sat Aug 15 16:25:46 EDT 2015


Changeset: 1c187bd52e3ca73888fa2a71a587f6edfe9478f8
Author:	 James Geboski <jgeboski at gmail.com>
Date:	 2015-08-15 14:57 -0400
Branch:	 facebook
URL: https://hg.pidgin.im/soc/2015/jgeboski/facebook/rev/1c187bd52e3c

Description:

facebook: fixed HTTP error checks being skipped

diffstat:

 libpurple/protocols/facebook/api.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/libpurple/protocols/facebook/api.c b/libpurple/protocols/facebook/api.c
--- a/libpurple/protocols/facebook/api.c
+++ b/libpurple/protocols/facebook/api.c
@@ -465,7 +465,7 @@ fb_api_http_chk(FbApi *api, PurpleHttpCo
 		              (gint) size, data);
 	}
 
-	if ((root == NULL) && fb_http_error_chk(res, &err)) {
+	if (fb_http_error_chk(res, &err) && (root == NULL)) {
 		return TRUE;
 	}
 



More information about the Commits mailing list