Mailing List Archive

libnasl/nasl nasl_socket.c,1.35.2.7,1.35.2.8
Update of /usr/local/cvs/libnasl/nasl
In directory raccoon.nessus.org:/tmp/cvs-serv3366

Modified Files:
Tag: NESSUS_2_2
nasl_socket.c
Log Message:
bug fix

Index: nasl_socket.c
===================================================================
RCS file: /usr/local/cvs/libnasl/nasl/nasl_socket.c,v
retrieving revision 1.35.2.7
retrieving revision 1.35.2.8
diff -u -d -r1.35.2.7 -r1.35.2.8
--- nasl_socket.c 3 Jan 2006 12:21:01 -0000 1.35.2.7
+++ nasl_socket.c 16 Feb 2006 16:12:36 -0000 1.35.2.8
@@ -233,6 +233,11 @@
else
return NULL;
}
+ else if ( errno != EINPROGRESS )
+ {
+ close(sock);
+ return NULL;
+ }
}

do {
@@ -242,6 +247,12 @@
FD_SET(sock, &rd);
e = select(sock + 1, NULL, &rd, NULL, to > 0 ? &tv:NULL);
} while ( e < 0 && errno == EINTR );
+
+ if ( e <= 0 )
+ {
+ close ( sock );
+ return FAKE_CELL;
+ }

block_socket(sock);
opt_sz = sizeof(opt);

_______________________________________________
Nessus-cvs mailing list
Nessus-cvs@list.nessus.org
http://mail.nessus.org/mailman/listinfo/nessus-cvs