X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=apps%2Fsilcd%2Fcommand_reply.c;fp=apps%2Fsilcd%2Fcommand_reply.c;h=ccb425f00d51b480495018e18a811caa1b1aecba;hb=275e2f50c1cbe4a0eec582cf490ef485049541af;hp=bd4052a47e619e037e1c0c1b76e0006c54014339;hpb=7039cf461d3d2951acc2f3e123ccc1d68a55931d;p=silc.git diff --git a/apps/silcd/command_reply.c b/apps/silcd/command_reply.c index bd4052a4..ccb425f0 100644 --- a/apps/silcd/command_reply.c +++ b/apps/silcd/command_reply.c @@ -1137,6 +1137,7 @@ SILC_SERVER_CMD_REPLY_FUNC(getkey) } client->data.public_key = public_key; + public_key = NULL; } else if (id_type == SILC_ID_SERVER) { server_id = silc_id_payload_get_id(idp); @@ -1150,6 +1151,7 @@ SILC_SERVER_CMD_REPLY_FUNC(getkey) } server_entry->data.public_key = public_key; + public_key = NULL; } else { goto out; }