]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - sshaes.c
Introduced wrapper macros snew(), snewn() and sresize() for the
[PuTTY.git] / sshaes.c
index 995d2ca5b94a7c33c8d7af7ff0132a1f254ae245..09f5b39749ac24d61fd0c91b826d5bf31dbd1b61 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)