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

James Geboski <[email protected]>
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: 1c187bd52e3ca73888fa2a71a587f6edfe9478f8
Author:	 James Geboski <[email protected]>
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;
 	}
 

_______________________________________________
Commits mailing list
[email protected]
https://pidgin.im/cgi-bin/mailman/listinfo/commits
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.