mem leak in kerberos_util.c

Love Hörnquist Åstrand lha at kth.se
Sun Oct 15 10:37:02 GMT 2006


15 okt 2006 kl. 03.55 skrev tridge at samba.org:

> ==29564==    by 0x864478A: hc_HMAC_Init_ex (hmac.c:82)

Love

--- lib/des/hmac.c	28 Feb 2006 15:09:11 +0100	1.3
+++ lib/des/hmac.c	15 Oct 2006 12:31:31 +0200	
@@ -28,7 +28,10 @@
	free(ctx->ipad);
	ctx->ipad = NULL;
      }
-    EVP_MD_CTX_cleanup(ctx->ctx);
+    if (ctx->ctx) {
+	EVP_MD_CTX_destroy(ctx->ctx);
+	ctx->ctx = NULL;
+    }
}
size_t



More information about the samba-technical mailing list