~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove some redundant null-pointer checks from code that must have
[sgt/putty]
/
sshrsa.c
diff --git
a/sshrsa.c
b/sshrsa.c
index
0785364
..
3bd971f
100644
(file)
--- a/
sshrsa.c
+++ b/
sshrsa.c
@@
-558,8
+558,6
@@
static void *rsa2_newkey(char *data, int len)
struct RSAKey *rsa;
rsa = snew(struct RSAKey);
struct RSAKey *rsa;
rsa = snew(struct RSAKey);
- if (!rsa)
- return NULL;
getstring(&data, &len, &p, &slen);
if (!p || slen != 7 || memcmp(p, "ssh-rsa", 7)) {
getstring(&data, &len, &p, &slen);
if (!p || slen != 7 || memcmp(p, "ssh-rsa", 7)) {
@@
-694,8
+692,6
@@
static void *rsa2_openssh_createkey(unsigned char **blob, int *len)
struct RSAKey *rsa;
rsa = snew(struct RSAKey);
struct RSAKey *rsa;
rsa = snew(struct RSAKey);
- if (!rsa)
- return NULL;
rsa->comment = NULL;
rsa->modulus = getmp(b, len);
rsa->comment = NULL;
rsa->modulus = getmp(b, len);