Skip to content
Permalink
Browse files
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 35e70ff5760962713bed4736f2e8417ab22c1f4d
Showing with 1 addition and 4 deletions.
  1. +1 −4 yubikey.c
@@ -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;
}

0 comments on commit 35e70ff

Please sign in to comment.