projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Bah. Ben points out that SSH_1_ version strings should still end in
[u/mdw/putty]
/
sshcrcda.c
diff --git
a/sshcrcda.c
b/sshcrcda.c
index
7fb5767
..
09e5f8d
100644
(file)
--- a/
sshcrcda.c
+++ b/
sshcrcda.c
@@
-71,7
+71,12
@@
void *crcda_make_context(void)
void crcda_free_context(void *handle)
{
- sfree(handle);
+ struct crcda_ctx *ctx = (struct crcda_ctx *)handle;
+ if (ctx) {
+ sfree(ctx->h);
+ ctx->h = NULL;
+ sfree(ctx);
+ }
}
static void crc_update(uint32 *a, void *b)