- Timestamp:
- 2023-04-07T20:43:51Z (20 months ago)
- Branches:
- master
- Children:
- cad74fb
- Parents:
- d36ef38
- git-author:
- dx <dx@…> (07-04-23 20:43:51)
- git-committer:
- GitHub <noreply@…> (07-04-23 20:43:51)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/jabber_util.c
rd36ef38 r5d9257cf 140 140 struct jabber_data *jd = ic->proto_data; 141 141 struct jabber_cache_entry *entry = g_new0(struct jabber_cache_entry, 1); 142 GChecksum *id_hash ;142 GChecksum *id_hash, *copy; 143 143 gsize digest_len = MD5_HASH_SIZE; 144 144 guint8 id_sum[MD5_HASH_SIZE]; … … 149 149 id_hash = jd->cached_id_prefix; 150 150 g_checksum_update(id_hash, (guint8 *) &next_id, sizeof(next_id)); 151 g_checksum_get_digest(id_hash, id_sum, &digest_len); 152 g_checksum_free(id_hash); 151 152 copy = g_checksum_copy(id_hash); 153 g_checksum_get_digest(copy, id_sum, &digest_len); 154 g_checksum_free(copy); 153 155 154 156 asc_hash = base64_encode(id_sum, 12);
Note: See TracChangeset
for help on using the changeset viewer.