--- a/libpurple/protocols/msn/directconn.c Sun May 05 13:15:07 2013 +0200 +++ b/libpurple/protocols/msn/directconn.c Sun May 05 14:59:11 2013 +0200 @@ -47,7 +47,7 @@ PurpleCipher *cipher = purple_ciphers_find_cipher("sha1"); PurpleCipherContext *context = purple_cipher_context_new(cipher, NULL); purple_cipher_context_append(context, nonce, nonce_len); - purple_cipher_context_digest(context, sizeof(digest), digest, NULL); + purple_cipher_context_digest(context, digest, sizeof(digest)); purple_cipher_context_destroy(context); } else if (type == DC_NONCE_PLAIN) { memcpy(digest, nonce, nonce_len);