View | Details | Raw Unified | Return to bug 258179
Collapse All | Expand All

(-)b/security/sshguard/Makefile (+1 lines)
Lines 2-7 Link Here
2
2
3
PORTNAME=	sshguard
3
PORTNAME=	sshguard
4
PORTVERSION=	2.4.2
4
PORTVERSION=	2.4.2
5
PORTREVISION=	1
5
PORTEPOCH=	1
6
PORTEPOCH=	1
6
CATEGORIES=	security
7
CATEGORIES=	security
7
MASTER_SITES=	SF/sshguard/sshguard/${PORTVERSION}
8
MASTER_SITES=	SF/sshguard/sshguard/${PORTVERSION}
(-)b/security/sshguard/files/patch-src_blocker_sshguard__whitelist.c (-1 / +11 lines)
Added Link Here
0
- 
1
--- src/blocker/sshguard_whitelist.c.orig	2020-12-31 17:06:03 UTC
2
+++ src/blocker/sshguard_whitelist.c
3
@@ -275,7 +275,7 @@ int whitelist_add_block6(const char *restrict address,
4
     bitlen = masklen % 8;
5
     bitmask = 0xFF << (8 - bitlen);
6
     ab.address.ip6.mask.s6_addr[bytelen] = bitmask;
7
-    memset(& ab.address.ip6.mask.s6_addr[bytelen+1], 0x00, sizeof(ab.address.ip6.mask.s6_addr) - bytelen);
8
+    memset(& ab.address.ip6.mask.s6_addr[bytelen+1], 0x00, sizeof(ab.address.ip6.mask.s6_addr) - bytelen - 1);
9
 
10
     if (! list_contains(& whitelist, &ab)) {
11
         list_append(& whitelist, &ab);

Return to bug 258179