From: Stef Walter Date: Mon, 30 May 2011 16:53:09 +0000 (+0200) Subject: Clear correct block of memory in p11_kit_uri_parse(). X-Git-Tag: 0.1~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0bd6cf376133f300edff57835eb95f7577d68792;p=p11-kit Clear correct block of memory in p11_kit_uri_parse(). --- 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));