blob: ca156fe528bcefbe0502239d8a2ed9b5df2a5f87 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
--- scanner_trophie.c.orig Thu Dec 4 02:57:56 2003
+++ scanner_trophie.c Wed Feb 18 12:51:22 2004
@@ -37,11 +37,11 @@
#include <sys/wait.h>
#include <sys/stat.h>
#include <errno.h>
-#include <malloc.h>
#include <sys/un.h>
#include <sys/socket.h>
#include <stdarg.h>
#include <ctype.h>
+#include <netinet/in.h>
#include "p3scan.h"
@@ -68,7 +68,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;
|