1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Check SHA1 valid

This commit is contained in:
James Booth 2013-01-20 20:50:10 +00:00
parent b031f337e6
commit eeafd62716

View File

@ -1084,6 +1084,11 @@ _disco_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza,
win_current_page_off(); win_current_page_off();
ui_refresh(); ui_refresh();
if (g_strcmp0(given_sha1, generated_sha1) != 0) {
log_info("Invalid SHA1 recieved for caps.");
return 1;
}
// already cached // already cached
if (caps_contains(node)) { if (caps_contains(node)) {
log_info("Client info already cached."); log_info("Client info already cached.");