From 0bd6cf376133f300edff57835eb95f7577d68792 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Mon, 30 May 2011 18:53:09 +0200 Subject: Clear correct block of memory in p11_kit_uri_parse(). --- p11-kit/uri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- cgit v1.1