Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use free_pass() for yubikey PIN
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
dwmw2 committed Dec 21, 2018
1 parent 8b49f8e commit 35e70ff
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions yubikey.c
Expand Up @@ -311,10 +311,7 @@ static int select_yubioath_applet(struct openconnect_info *vpninfo,
}
}
out:
if (pin) {
memset(pin, 0, pin_len);
free(pin);
}
free_pass(&pin);
return ret;
}

Expand Down

0 comments on commit 35e70ff

Please sign in to comment.