# HG changeset patch # User Paul Aurich # Date 1305090006 0 # Node ID 4c7ebb2cf4d12e8847550926e56cc1d62ea92bdd # Parent 738467beb6876e23c9297e40c5e77fd9a0e4a0af msn: Avoid reading uninit memory. This can't happen at any of the existing call points. diff -r 738467beb687 -r 4c7ebb2cf4d1 libpurple/protocols/msn/directconn.c --- a/libpurple/protocols/msn/directconn.c Wed May 11 04:42:07 2011 +0000 +++ b/libpurple/protocols/msn/directconn.c Wed May 11 05:00:06 2011 +0000 @@ -51,6 +51,9 @@ purple_cipher_context_destroy(context); } else if (type == DC_NONCE_PLAIN) { memcpy(digest, nonce, 16); + } else { + nonce_hash[0] = '\0'; + g_return_if_reached(); } g_sprintf(nonce_hash,