pidgin/pidgin

Parents cb3f85d86752
Children db6beb747e05
jabber: Don't overwrite checksum_size for g_checksum_get_digest()

The digest_len argument of g_checksum_get_digest() is intended to
prevent the function from writing past the length of the buffer
argument. This patch removes a line which causes the length of the
digest to be passed instead of the length of the buffer as intended.
--- a/libpurple/protocols/jabber/caps.c Thu Jun 01 17:42:54 2017 -0500
+++ b/libpurple/protocols/jabber/caps.c Thu Jun 01 19:09:16 2017 -0500
@@ -916,7 +916,6 @@
}
/* generate hash */
- checksum_size = g_checksum_type_get_length(hash_type);
g_checksum_get_digest(hash, checksum, &checksum_size);
return purple_base64_encode(checksum, checksum_size);