|
From: Narasimha S. <nsh...@us...> - 2012-04-13 16:16:23
|
Update of /cvsroot/sblim/sfcb
In directory vz-cvs-3.sog:/tmp/cvs-serv30490
Modified Files:
httpAdapter.c
Log Message:
[ 3516184 ] commClose close socket when file hndl is null
Signed-off-by: Narasimha Sharoff <nsh...@us...>
Index: httpAdapter.c
===================================================================
RCS file: /cvsroot/sblim/sfcb/httpAdapter.c,v
retrieving revision 1.106
retrieving revision 1.107
diff -u -d -r1.106 -r1.107
--- httpAdapter.c 11 Apr 2012 22:55:17 -0000 1.106
+++ httpAdapter.c 13 Apr 2012 16:16:20 -0000 1.107
@@ -586,6 +586,7 @@
RespSegments rs;
rs=genFirstChunkErrorResponse(ctx, rh->rc-1, NULL);
writeResponse(*ctx->commHndl, rs);
+ commFlush(*(ctx->commHndl));
_SFCB_EXIT();
}
writeChunkHeaders(ctx);
@@ -1171,6 +1172,7 @@
if (r < 0) {
char *emsg=strerror(errno);
mlogf(M_ERROR,M_SHOW,"--- fork handler: %s\n",emsg);
+ close(connFd);
exit(1);
}
|