]> granicus.if.org Git - p11-kit/commitdiff
Clear correct block of memory in p11_kit_uri_parse().
authorStef Walter <stefw@collabora.co.uk>
Mon, 30 May 2011 16:53:09 +0000 (18:53 +0200)
committerStef Walter <stefw@collabora.co.uk>
Mon, 30 May 2011 16:53:09 +0000 (18:53 +0200)
p11-kit/uri.c

index 684a740dc183945b593d54f40fb4d3435c79c0be..36fae187ba762ab9d3927a277c95fdd2b280e781 100644 (file)
@@ -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));