diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2011-03-17 15:33:44 +0100 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2011-03-17 15:34:03 +0100 |
commit | f55337e93b9dcac1b905487a5fc89a4ce61e8c21 (patch) | |
tree | 975557af373ffbb43b7395a1011a89467042dfcc | |
parent | 92335693f199ba11b8fe7f573cbb9104fc3460c7 (diff) |
gtk/channel: return if pubkey is NULL
Patch suggested by Alon Levy.
http://lists.freedesktop.org/archives/spice-devel/2011-March/002943.html
-rw-r--r-- | gtk/spice-channel.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/spice-channel.c b/gtk/spice-channel.c index 539bc39..dbabefb 100644 --- a/gtk/spice-channel.c +++ b/gtk/spice-channel.c @@ -822,6 +822,8 @@ static void spice_channel_send_spice_ticket(SpiceChannel *channel) BIO_write(bioKey, c->peer_msg->pub_key, SPICE_TICKET_PUBKEY_BYTES); pubkey = d2i_PUBKEY_bio(bioKey, NULL); + g_return_if_fail(pubkey != NULL); + rsa = pubkey->pkey.rsa; nRSASize = RSA_size(rsa); |