X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/371e569c350575d3f9b41c71e2ff51de9ef62483..f5dd8adbec0c362f609e2f115ff5859ce4969d09:/sshblowf.c 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)