diff options
author | Stef Walter <stefw@collabora.co.uk> | 2011-05-30 18:53:09 +0200 |
---|---|---|
committer | Stef Walter <stefw@collabora.co.uk> | 2011-05-30 18:53:09 +0200 |
commit | 0bd6cf376133f300edff57835eb95f7577d68792 (patch) | |
tree | 9c0043e6bcb904649a830540df9208c245cbc6a8 | |
parent | 6f1e963901ca7aff7af6bec376af00f892cbb9ca (diff) |
Clear correct block of memory in p11_kit_uri_parse().
-rw-r--r-- | p11-kit/uri.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/p11-kit/uri.c b/p11-kit/uri.c index 684a740..36fae18 100644 --- a/p11-kit/uri.c +++ b/p11-kit/uri.c @@ -1247,7 +1247,7 @@ p11_kit_uri_parse (const char *string, P11KitUriType uri_type, /* Clear everything out */ memset (&uri->module, 0, sizeof (uri->module)); - memset (&uri->token, 0, sizeof (uri->module)); + memset (&uri->token, 0, sizeof (uri->token)); for (i = 0; i < uri->n_attributes; ++i) { free (uri->attributes[i].pValue); memset (&uri->attributes[i], 0, sizeof (CK_ATTRIBUTE)); |