X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=sshblowf.c;h=ca04c09cf0dfd94ae7448c8b7c60c4269805ddb9;hb=803dfd851dd26fce2f4b4917f94ca491117a601c;hp=6bbe7d2719c4386e6af16b4229760cd587fd3e82;hpb=c01c2a97775ac32975767821d2df585569de6db3;p=PuTTY_svn.git diff --git a/sshblowf.c b/sshblowf.c index 6bbe7d27..ca04c09c 100644 --- a/sshblowf.c +++ b/sshblowf.c @@ -478,13 +478,13 @@ static void blowfish_setkey(BlowfishContext * ctx, static void *blowfish_make_context(void) { - return smalloc(sizeof(BlowfishContext)); + return snew(BlowfishContext); } static void *blowfish_ssh1_make_context(void) { /* In SSH1, need one key for each direction */ - return smalloc(2*sizeof(BlowfishContext)); + return snewn(2, BlowfishContext); } static void blowfish_free_context(void *handle)