summaryrefslogtreecommitdiffstats
path: root/main/iaxmodem/iaxmodem-fix.patch
blob: ab4db6b31affcf92092a9ec3850d3944f87e75b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- iaxmodem-1.2.0.orig/lib/libiax2/src/iax.c
+++ iaxmodem-1.2.0/lib/libiax2/src/iax.c
@@ -77,9 +77,6 @@
 
 #if !defined(MACOSX) && !defined(__OpenBSD__)
 #include <malloc.h>
-#if !defined(SOLARIS)
-#include <error.h>
-#endif
 #endif
 
 #endif
--- iaxmodem-1.2.0.orig/lib/libiax2/src/md5.c
+++ iaxmodem-1.2.0/lib/libiax2/src/md5.c
@@ -177,7 +177,7 @@
     MD5Transform(ctx->buf, (uint32_t *) ctx->in);
     byteReverse((uint8_t *) ctx->buf, 4);
     memcpy(digest, ctx->buf, 16);
-    memset(ctx, 0, sizeof(ctx));	/* In case it's sensitive */
+    memset(ctx, 0, sizeof(*ctx));	/* In case it's sensitive */
 }
 
 #ifndef ASM_MD5