Assignments that are overwritten shortly afterwards and never used,
and a completely unused variable. Also, the bogus array access in
testbn.c could have actually accessed one beyond the array limit
(though of course it's only in a test harness).
int i;
struct ssh2_userkey *retval = NULL;
const char *errmsg;
- unsigned char *blob;
- int blobsize = 0;
unsigned checkint0, checkint1;
const void *priv, *string;
int privlen, stringlen, key_index;
const struct ssh_signkey *alg = NULL;
- blob = NULL;
-
if (!key)
return NULL;
retkey = NULL; /* prevent the free */
error:
- if (blob) {
- smemclr(blob, blobsize);
- sfree(blob);
- }
if (retkey) {
sfree(retkey->comment);
if (retkey->data) {
}
} else {
nmatch = 0;
- hash = INVALID;
}
if (nmatch > 0) {
val = val * 16 + fromxdigit(start[i+1]);
*q++ = val;
}
-
- ptrs[ptrnum] = q;
}
if (!strcmp(buf, "mul")) {
if (quotes > 0) {
/* Outside a quote segment, a quote starts one. */
- if (!quote) quotes--, quote = 1;
+ if (!quote) quotes--;
/* Now we produce (n+1)/3 literal quotes... */
for (i = 3; i <= quotes+1; i += 3) *q++ = '"';