X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcclient%2Fclient_prvmsg.c;h=c229b4509655c111fe43e21c6f0fc45d8922a6d7;hb=b595f4324d9f59209f3b3c8dba8ac49ac66e467b;hp=2ef43aec9245307d993752a0ae37fff1a546ec80;hpb=21c7b3bac16c0f6d51ac26e9de29a85a1cd6af60;p=silc.git diff --git a/lib/silcclient/client_prvmsg.c b/lib/silcclient/client_prvmsg.c index 2ef43aec..c229b450 100644 --- a/lib/silcclient/client_prvmsg.c +++ b/lib/silcclient/client_prvmsg.c @@ -71,7 +71,7 @@ void silc_client_send_private_message(SilcClient client, /* We have private message specific key */ /* Get data used in the encryption */ - cipher = client_entry->send_key; + cipher = conn->send_key; hmac = conn->hmac_send; block_len = silc_cipher_get_block_len(cipher); @@ -103,7 +103,6 @@ void silc_client_send_private_message(SilcClient client, } /* Encrypt the header and padding of the packet. */ - cipher = conn->send_key; silc_packet_encrypt(cipher, hmac, conn->psn_send++, (SilcBuffer)&packet, SILC_PACKET_HEADER_LEN + packetdata.src_id_len + packetdata.dst_id_len +