View | Details | Raw Unified | Return to bug 250531 | Differences between
and this patch

Collapse All | Expand All

(-)security/pecl-mcrypt/Makefile (+1 lines)
Lines 2-7 Link Here
2
2
3
PORTNAME=	mcrypt
3
PORTNAME=	mcrypt
4
PORTVERSION=	1.0.3
4
PORTVERSION=	1.0.3
5
PORTREVISION=	1
5
CATEGORIES=	security pear
6
CATEGORIES=	security pear
6
7
7
MAINTAINER=	pizzamig@FreeBSD.org
8
MAINTAINER=	pizzamig@FreeBSD.org
(-)security/pecl-mcrypt/files/patch-mcrypt.c (+69 lines)
Line 0 Link Here
1
--- mcrypt.c.orig	2019-09-17 16:24:14 UTC
2
+++ mcrypt.c
3
@@ -629,7 +629,7 @@ PHP_FUNCTION(mcrypt_generic)
4
 
5
 	if (data_len == 0) {
6
 		php_error_docref(NULL, E_WARNING, "An empty string was passed");
7
-		RETURN_FALSE
8
+		RETURN_FALSE;
9
 	}
10
 
11
 	if (data_len > INT_MAX) {
12
@@ -683,7 +683,7 @@ PHP_FUNCTION(mdecrypt_generic)
13
 
14
 	if (data_len == 0) {
15
 		php_error_docref(NULL, E_WARNING, "An empty string was passed");
16
-		RETURN_FALSE
17
+		RETURN_FALSE;
18
 	}
19
 
20
 	/* Check blocksize */
21
@@ -762,10 +762,10 @@ PHP_FUNCTION(mcrypt_generic_deinit)
22
 
23
 	if (mcrypt_generic_deinit(pm->td) < 0) {
24
 		php_error_docref(NULL, E_WARNING, "Could not terminate encryption specifier");
25
-		RETURN_FALSE
26
+		RETURN_FALSE;
27
 	}
28
 	pm->init = 0;
29
-	RETURN_TRUE
30
+	RETURN_TRUE;
31
 }
32
 /* }}} */
33
 
34
@@ -776,9 +776,9 @@ PHP_FUNCTION(mcrypt_enc_is_block_algorithm_mode)
35
 	MCRYPT_GET_TD_ARG
36
 
37
 	if (mcrypt_enc_is_block_algorithm_mode(pm->td) == 1) {
38
-		RETURN_TRUE
39
+		RETURN_TRUE;
40
 	} else {
41
-		RETURN_FALSE
42
+		RETURN_FALSE;
43
 	}
44
 }
45
 /* }}} */
46
@@ -790,9 +790,9 @@ PHP_FUNCTION(mcrypt_enc_is_block_algorithm)
47
 	MCRYPT_GET_TD_ARG
48
 
49
 	if (mcrypt_enc_is_block_algorithm(pm->td) == 1) {
50
-		RETURN_TRUE
51
+		RETURN_TRUE;
52
 	} else {
53
-		RETURN_FALSE
54
+		RETURN_FALSE;
55
 	}
56
 }
57
 /* }}} */
58
@@ -804,9 +804,9 @@ PHP_FUNCTION(mcrypt_enc_is_block_mode)
59
 	MCRYPT_GET_TD_ARG
60
 
61
 	if (mcrypt_enc_is_block_mode(pm->td) == 1) {
62
-		RETURN_TRUE
63
+		RETURN_TRUE;
64
 	} else {
65
-		RETURN_FALSE
66
+		RETURN_FALSE;
67
 	}
68
 }
69
 /* }}} */

Return to bug 250531