aboutsummaryrefslogtreecommitdiffstats
path: root/mail/pop3vscan
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2003-06-29 21:21:20 +0800
committerleeym <leeym@FreeBSD.org>2003-06-29 21:21:20 +0800
commita2c28c60f04f739bde4034c383cc518ce01aa1c1 (patch)
tree55efe2454ba1930a124803066c3e9ca8b0d8cdb9 /mail/pop3vscan
parentd5b84f765af1f466eeca30531cbd7f104ebf5367 (diff)
downloadfreebsd-ports-gnome-a2c28c60f04f739bde4034c383cc518ce01aa1c1.tar.gz
freebsd-ports-gnome-a2c28c60f04f739bde4034c383cc518ce01aa1c1.tar.zst
freebsd-ports-gnome-a2c28c60f04f739bde4034c383cc518ce01aa1c1.zip
use SUN_LEN macro to calculate the actual length of an initialized sockaddr_un
Submitted by: Edwin Groothuis <edwin@mavetju.org>
Diffstat (limited to 'mail/pop3vscan')
-rw-r--r--mail/pop3vscan/files/patch-scanner_avpd.c11
-rw-r--r--mail/pop3vscan/files/patch-scanner_trophie.c11
2 files changed, 22 insertions, 0 deletions
diff --git a/mail/pop3vscan/files/patch-scanner_avpd.c b/mail/pop3vscan/files/patch-scanner_avpd.c
new file mode 100644
index 000000000000..19194f96c743
--- /dev/null
+++ b/mail/pop3vscan/files/patch-scanner_avpd.c
@@ -0,0 +1,11 @@
+--- scanner_avpd.c.orig Sun Jun 29 21:08:46 2003
++++ scanner_avpd.c Sun Jun 29 21:10:12 2003
+@@ -74,7 +74,7 @@
+ if (avp_fd!=-1 && connected==-1){
+ do_log(LOG_DEBUG, "Trying to connect to socket");
+ if (connect(avp_fd, (struct sockaddr *)(&avp_socket),
+- sizeof(avp_socket.sun_family) + strlen(NodeCtl)) >= 0){
++ SUN_LEN(&avp_socket)) >= 0){
+ connected=1;
+ do_log(LOG_DEBUG, "avp_socket_connect connected to kavdaemon");
+ return 0;
diff --git a/mail/pop3vscan/files/patch-scanner_trophie.c b/mail/pop3vscan/files/patch-scanner_trophie.c
new file mode 100644
index 000000000000..dfbe3708a59e
--- /dev/null
+++ b/mail/pop3vscan/files/patch-scanner_trophie.c
@@ -0,0 +1,11 @@
+--- scanner_trophie.c.orig Sun Jun 29 21:08:53 2003
++++ scanner_trophie.c Sun Jun 29 21:10:34 2003
+@@ -61,7 +61,7 @@
+ if (trophie_fd!=-1 && connected==-1){
+ do_log(LOG_DEBUG, "Trying to connect to socket");
+ if (connect(trophie_fd, (struct sockaddr *)(&trophie_socket),
+- sizeof(trophie_socket.sun_family) + strlen(config->virusscanner)) >= 0){
++ SUN_LEN(&trophie_socket)) >= 0){
+ connected=1;
+ do_log(LOG_DEBUG, "trophie_socket_connect connected");
+ return 0;