Index: head/net-mgmt/flow-tools/Makefile =================================================================== --- head/net-mgmt/flow-tools/Makefile (revision 511045) +++ head/net-mgmt/flow-tools/Makefile (revision 511046) @@ -1,45 +1,46 @@ # Created by: @BABOLO <.@babolo.ru> # $FreeBSD$ PORTNAME= flow-tools PORTVERSION= 0.68.6 DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= net-mgmt MAINTAINER= bofh@FreeBSD.org COMMENT= Suite of tools and library to work with netflow data LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= docbook-to-man:textproc/docbook-to-man USES= autoreconf libtool:keepla python:run shebangfix OPTIONS_DEFINE= MYSQL OPENSSL PGSQL PGSQL_CONFIGURE_ON= --with-postgresql PGSQL_USES= pgsql MYSQL_CONFIGURE_ON= --with-mysql="${LOCALBASE}" MYSQL_USES= mysql OPENSSL_CONFIGURE_ON= --with-openssl="${OPENSSLBASE}" OPENSSL_USES= ssl SHEBANG_FILES= bin/flow-* GNU_CONFIGURE= yes USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= 5u623l20 GH_TAGNAME= 6e7c849 SUB_LIST= FLOW_CAPTURE_SPOOL="${FLOW_CAPTURE_SPOOL}" \ FLOW_CAPTURE_PIDDIR="${FLOW_CAPTURE_PIDDIR}" USE_RC_SUBR= flow_capture flow_fanout VARDIR?= /var FLOW_CAPTURE_SPOOL= ${VARDIR}/db/flows FLOW_CAPTURE_PIDDIR= ${VARDIR}/run/flow-capture USERS= flowtools GROUPS= flowtools .include Index: head/net-mgmt/flow-tools/files/patch-lib_ftxlate.c =================================================================== --- head/net-mgmt/flow-tools/files/patch-lib_ftxlate.c (nonexistent) +++ head/net-mgmt/flow-tools/files/patch-lib_ftxlate.c (revision 511046) @@ -0,0 +1,39 @@ +--- lib/ftxlate.c.orig 2019-03-21 19:39:03 UTC ++++ lib/ftxlate.c +@@ -2040,21 +2040,21 @@ static int cryptopan_init(struct cryptopan *cp, unsign + + + /* init crypto */ +- if (!(cp->cipher_ctx = (EVP_CIPHER_CTX*) malloc(sizeof(EVP_CIPHER_CTX)))) { ++ cp->cipher_ctx = EVP_CIPHER_CTX_new(); ++ if (cp->cipher_ctx == NULL) + return -1; +- } + +- EVP_CIPHER_CTX_init(cp->cipher_ctx); +- + /* disable padding */ + if (!(EVP_CIPHER_CTX_set_padding(cp->cipher_ctx, 0))) { + cryptopan_free(cp); ++ EVP_CIPHER_CTX_free(cp->cipher_ctx); + return -1; + } + + /* init encryption */ + if (!(EVP_EncryptInit(cp->cipher_ctx, EVP_aes_128_ecb(), key, NULL))) { + cryptopan_free(cp); ++ EVP_CIPHER_CTX_free(cp->cipher_ctx); + return -1; + } + +@@ -2062,8 +2062,10 @@ static int cryptopan_init(struct cryptopan *cp, unsign + i = 16; + if (!(EVP_EncryptUpdate(cp->cipher_ctx, cp->m_pad, &i, key+16, i))) { + cryptopan_free(cp); ++ EVP_CIPHER_CTX_free(cp->cipher_ctx); + return -1; + } ++ EVP_CIPHER_CTX_free(cp->cipher_ctx); + + #endif /* HAVE_OPENSSL */ + Property changes on: head/net-mgmt/flow-tools/files/patch-lib_ftxlate.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property