summaryrefslogtreecommitdiffstats
path: root/libssh/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'libssh/server.c')
-rw-r--r--libssh/server.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/libssh/server.c b/libssh/server.c
index 1eb09d55..7e9ad0b8 100644
--- a/libssh/server.c
+++ b/libssh/server.c
@@ -285,15 +285,7 @@ static int server_set_kex(ssh_session session) {
char *wanted;
ZERO_STRUCTP(server);
- /*
- * The program might ask for a specific cookie to be sent. Useful for server
- * debugging
- */
- if (options->wanted_cookie) {
- memcpy(server->cookie, options->wanted_cookie, 16);
- } else {
- ssh_get_random(server->cookie, 16, 0);
- }
+ ssh_get_random(server->cookie, 16, 0);
if (session->dsa_key != NULL && session->rsa_key != NULL) {
if (ssh_options_set(options, SSH_OPTIONS_SERVER_HOSTKEY,