Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix memset_s arguments harder.
Doh.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
dwmw2 committed Jan 5, 2019
1 parent ff80212 commit ae5b93d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth-common.c
Expand Up @@ -112,7 +112,7 @@ int append_form_opts(struct openconnect_info *vpninfo,
void clear_mem(void *p, size_t s)
{
#if defined(HAVE_MEMSET_S)
memset_s(p, 0x5a, s, s);
memset_s(p, s, 0x5a, s);
#elif defined(HAVE_EXPLICIT_MEMSET)
explicit_memset(p, 0x5a, s);
#elif defined(HAVE_EXPLICIT_BZERO)
Expand Down

0 comments on commit ae5b93d

Please sign in to comment.