summaryrefslogtreecommitdiffstats
path: root/libssh/kex.c
diff options
context:
space:
mode:
Diffstat (limited to 'libssh/kex.c')
-rw-r--r--libssh/kex.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libssh/kex.c b/libssh/kex.c
index ded0247..d5eba61 100644
--- a/libssh/kex.c
+++ b/libssh/kex.c
@@ -341,11 +341,7 @@ int set_kex(ssh_session session){
int i;
const char *wanted;
enter_function();
- /* the client might ask for a specific cookie to be sent. useful for server debugging */
- if(options->wanted_cookie)
- memcpy(client->cookie,options->wanted_cookie,16);
- else
- ssh_get_random(client->cookie,16,0);
+ ssh_get_random(client->cookie,16,0);
client->methods=malloc(10 * sizeof(char **));
if (client->methods == NULL) {
ssh_set_error(session, SSH_FATAL, "No space left");