From: Luke Howard Date: Tue, 28 Sep 2010 10:34:38 +0000 (+0200) Subject: cleanup X-Git-Url: http://www.project-moonshot.org/gitweb/?p=cyrus-sasl.git;a=commitdiff_plain;h=207e3b2b79ace286121710ff116b245e5666f8a0 cleanup --- diff --git a/plugins/gs2.c b/plugins/gs2.c index 9667274..b3fb5d2 100644 --- a/plugins/gs2.c +++ b/plugins/gs2.c @@ -571,12 +571,12 @@ gs2_common_plug_init(const sasl_utils_t *utils, return SASL_NOMECH; } - plugs = utils->malloc(2 * gs2_mechs->count * plugsize); + plugs = utils->malloc(gs2_mechs->count * plugsize); if (plugs == NULL) { MEMERROR(utils); return SASL_NOMEM; } - memset(plugs, 0, 2 * gs2_mechs->count * plugsize); + memset(plugs, 0, gs2_mechs->count * plugsize); for (i = 0; i < gs2_mechs->count; i++) { gss_buffer_desc sasl_mech_name = GSS_C_EMPTY_BUFFER;