Introduced wrapper macros snew(), snewn() and sresize() for the
[u/mdw/putty] / sshaes.c
index 995d2ca..09f5b39 100644 (file)
--- a/sshaes.c
+++ b/sshaes.c
@@ -1085,7 +1085,7 @@ static void aes_decrypt_cbc(unsigned char *blk, int len, AESContext * ctx)
 
 static void *aes_make_context(void)
 {
-    return smalloc(sizeof(AESContext));
+    return snew(AESContext);
 }
 
 static void aes_free_context(void *handle)