goto done;
}
- *out = blob;
- blob = NULL;
+ if (out != NULL) {
+ *out = blob;
+ blob = NULL;
+ }
r = 0;
done:
free(sig);
out:
sshbuf_free(b);
explicit_bzero(hash, sizeof(hash));
- return 0;
+ return r;
}
int
sshbuf_free(b);
ssh_digest_free(ctx);
explicit_bzero(hash, sizeof(hash));
- return 0;
+ return r;
}
int
char *line = NULL;
size_t linesize = 0;
u_long linenum = 0;
- int r, oerrno;
+ int r = SSH_ERR_INTERNAL_ERROR, oerrno;
/* Check key and principal against file */
if ((f = fopen(path, "r")) == NULL) {