Static analyzer fixes
[silc.git] / lib / silccrypt / md5.c
index b896df5b0530ce72301558335a1645b16e2eef5f..08f9195d55d33764693c1dfa89c4d9d3c88b085e 100644 (file)
@@ -18,7 +18,7 @@
  * will fill a supplied 16-byte array with the digest.
  */
 
-#include "silcincludes.h"
+#include "silc.h"
 #include "md5_internal.h"
 #include "md5.h"
 
@@ -154,7 +154,7 @@ MD5Final(unsigned char digest[16], struct MD5Context *ctx)
   SILC_PUT32_LSB(ctx->buf[1], digest + 4);
   SILC_PUT32_LSB(ctx->buf[2], digest + 8);
   SILC_PUT32_LSB(ctx->buf[3], digest + 12);
-  memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */
+  memset(ctx, 0, sizeof(*ctx));        /* In case it's sensitive */
 }
 
 #ifndef ASM_MD5