projects
/
u
/
mdw
/
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
[u/mdw/putty]
/
sshdss.c
diff --git
a/sshdss.c
b/sshdss.c
index
8c9f93e
..
e634b98
100644
(file)
--- a/
sshdss.c
+++ b/
sshdss.c
@@
-89,8
+89,6
@@
static void *dss_newkey(char *data, int len)
struct dss_key *dss;
dss = snew(struct dss_key);
struct dss_key *dss;
dss = snew(struct dss_key);
- if (!dss)
- return NULL;
getstring(&data, &len, &p, &slen);
#ifdef DEBUG_DSS
getstring(&data, &len, &p, &slen);
#ifdef DEBUG_DSS
@@
-430,8
+428,6
@@
static void *dss_openssh_createkey(unsigned char **blob, int *len)
struct dss_key *dss;
dss = snew(struct dss_key);
struct dss_key *dss;
dss = snew(struct dss_key);
- if (!dss)
- return NULL;
dss->p = getmp(b, len);
dss->q = getmp(b, len);
dss->p = getmp(b, len);
dss->q = getmp(b, len);