crBegin(ssh->do_ssh1_login_crstate);
- random_init();
-
if (!pktin)
crWaitUntil(pktin);
s->csmac_tobe = s->scmac_tobe = NULL;
s->cscomp_tobe = s->sccomp_tobe = NULL;
- random_init();
s->first_kex = 1;
{
/*
* We've sent client NEWKEYS, so create and initialise
- * client-to-servere session keys.
+ * client-to-server session keys.
*/
if (ssh->cs_cipher_ctx)
ssh->cscipher->free_context(ssh->cs_cipher_ctx);
if (p != NULL)
return p;
+ random_ref();
+
return NULL;
}
sfree(ssh);
if (ssh->pinger)
pinger_free(ssh->pinger);
+
+ random_unref();
}
/*