From 2be7978dc267e908d1b1cf1bdd567199b95c119c Mon Sep 17 00:00:00 2001 From: Jochen Eisinger Date: Mon, 28 Mar 2005 20:46:42 +0000 Subject: [PATCH] Mon Mar 28 22:46:23 CEST 2005 Jochen Eisinger * Make public key in getkey reply mandatory. Affected file lib/silcclient/command_reply.c --- CHANGES | 5 +++++ lib/silcclient/command_reply.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/CHANGES b/CHANGES index bee7872a..aba7caaf 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,8 @@ +Mon Mar 28 22:46:23 CEST 2005 Jochen Eisinger + + * Make public key in getkey reply mandatory. Affected file + lib/silcclient/command_reply.c + Sun Mar 27 19:03:31 CEST 2005 Patrik Weiskircher * Added Parameter dont_register_crypto_library to diff --git a/lib/silcclient/command_reply.c b/lib/silcclient/command_reply.c index 6f024acb..035f9f15 100644 --- a/lib/silcclient/command_reply.c +++ b/lib/silcclient/command_reply.c @@ -1960,6 +1960,11 @@ SILC_CLIENT_CMD_REPLY_FUNC(getkey) public_key = NULL; } + if (!public_key) { + COMMAND_REPLY_ERROR(SILC_STATUS_ERR_NOT_ENOUGH_PARAMS); + goto out; + } + id_type = silc_id_payload_get_type(idp); if (id_type == SILC_ID_CLIENT) { /* Received client's public key */ -- 2.24.0