Skip to content
Snippets Groups Projects
Commit 3d0d1b91 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Actually fix warning reported by nelgin.

parent 8998c57b
No related branches found
No related tags found
No related merge requests found
Pipeline #5365 passed
......@@ -79,8 +79,8 @@ check_pubkey(scfg_t *cfg, ushort unum, char *pkey, size_t pksz)
int pklen;
pklen = b64_decode(pk, sizeof(pk), tok, 0);
if (pklen > 0) {
if ((pksz - 4) == pklen) {
if (memcmp(&pkey[4], pk, (unsigned)pklen) == 0) {
if ((pksz - 4) == (unsigned)pklen) {
if (memcmp(&pkey[4], pk, pklen) == 0) {
fclose(sshkeys);
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment