~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
INADDR_NONE is nonstandard. Use (in_addr_t)(-1) instead.
[sgt/putty]
/
sshblowf.c
diff --git
a/sshblowf.c
b/sshblowf.c
index
6bbe7d2
..
ca04c09
100644
(file)
--- a/
sshblowf.c
+++ b/
sshblowf.c
@@
-478,13
+478,13
@@
static void blowfish_setkey(BlowfishContext * ctx,
static void *blowfish_make_context(void)
{
static void *blowfish_make_context(void)
{
- return s
malloc(sizeof(BlowfishContext)
);
+ return s
new(BlowfishContext
);
}
static void *blowfish_ssh1_make_context(void)
{
/* In SSH1, need one key for each direction */
}
static void *blowfish_ssh1_make_context(void)
{
/* In SSH1, need one key for each direction */
- return s
malloc(2*sizeof(BlowfishContext)
);
+ return s
newn(2, BlowfishContext
);
}
static void blowfish_free_context(void *handle)
}
static void blowfish_free_context(void *handle)