pidgin: 2c635996: Use av_len in the same manner as everywh...

sadrul at pidgin.im sadrul at pidgin.im
Thu Dec 11 19:01:04 EST 2008


-----------------------------------------------------------------
Revision: 2c63599660bb7ed2aa17389e548fbc0511b797ac
Ancestor: b81c3df47e99fb60caede8d8fdabc2a4796cbea1
Author: sadrul at pidgin.im
Date: 2008-12-12T00:01:40
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/2c63599660bb7ed2aa17389e548fbc0511b797ac

Modified files:
        libpurple/plugins/perl/common/Certificate.xs

ChangeLog: 

Use av_len in the same manner as everywhere else, for consistency.

-------------- next part --------------
============================================================
--- libpurple/plugins/perl/common/Certificate.xs	6c0a72f190cb8b169ce41e6de313a9fe53e9782a
+++ libpurple/plugins/perl/common/Certificate.xs	7cb1c4a959341b1736216a66214233ac59d3a75f
@@ -231,8 +231,8 @@ purple_certificate_verify(verifier, subj
 		int len = 0, i = 0;
 		struct cb_data *d = NULL;
 	PPCODE:
-		len = av_len(cert_chain) + 1;
-		for(i = 0; i < len; i++) {
+		len = av_len(cert_chain);
+		for(i = 0; i <= len; i++) {
 			SV **sv = av_fetch(cert_chain, i, 0);
 			if(!sv || !purple_perl_is_ref_object(*sv)) {
 				g_list_free(l);


More information about the Commits mailing list