[srvx-commits] CVS: services/src proto-common.c,1.17,1.18
Brought to you by:
entrope
|
From: Zoot <zo...@us...> - 2002-10-21 02:34:33
|
Update of /cvsroot/srvx/services/src
In directory usw-pr-cvs1:/tmp/cvs-serv16077/src
Modified Files:
proto-common.c
Log Message:
Don't dereference a NULL pointer when running replays and don't print the "connection lost" message twice.
Index: proto-common.c
===================================================================
RCS file: /cvsroot/srvx/services/src/proto-common.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -r1.17 -r1.18
*** proto-common.c 16 Oct 2002 03:38:31 -0000 1.17
--- proto-common.c 21 Oct 2002 02:34:30 -0000 1.18
***************
*** 84,91 ****
socket_destroyed(struct io_fd *fd)
{
! if (fd->eof)
! {
! log(MAIN_LOG, LOG_ERROR, "Connection to server lost.\n");
! }
socket_io_fd = NULL;
cManager.uplink->state = DISCONNECTED;
--- 84,88 ----
socket_destroyed(struct io_fd *fd)
{
! (void)fd;
socket_io_fd = NULL;
cManager.uplink->state = DISCONNECTED;
|