mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 03:22:48 -05:00
Remove some redundant null-pointer checks from code that must have
been written before I wrote a never-failing snew. [originally from svn r9985]
This commit is contained in:
4
sshdss.c
4
sshdss.c
@ -89,8 +89,6 @@ static void *dss_newkey(char *data, int len)
|
||||
struct dss_key *dss;
|
||||
|
||||
dss = snew(struct dss_key);
|
||||
if (!dss)
|
||||
return NULL;
|
||||
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);
|
||||
if (!dss)
|
||||
return NULL;
|
||||
|
||||
dss->p = getmp(b, len);
|
||||
dss->q = getmp(b, len);
|
||||
|
Reference in New Issue
Block a user