23 lines
1019 B
Diff
23 lines
1019 B
Diff
diff --git a/plugins/imptcp/imptcp.c b/plugins/imptcp/imptcp.c
|
|
index c373c17e..ab2a17e5 100644
|
|
--- plugins/imptcp/imptcp.c
|
|
+++ plugins/imptcp/imptcp.c
|
|
@@ -828,7 +828,7 @@ AcceptConnReq(ptcplstn_t *pLstn, int *newSock, prop_t **peerName, prop_t **peerI
|
|
LogMsg(0, RS_RET_NO_ERRCODE, LOG_INFO, "imptcp: connection established with host: %s", propGetSzStr(*peerName));
|
|
}
|
|
|
|
- STATSCOUNTER_INC(pLstn->ctrSessOpen, pThis->pLstn->mutCtrSessOpen);
|
|
+ STATSCOUNTER_INC(pLstn->ctrSessOpen, pLstn->mutCtrSessOpen);
|
|
*newSock = iNewSock;
|
|
|
|
finalize_it:
|
|
@@ -837,7 +837,7 @@ finalize_it:
|
|
if(iRet != RS_RET_NO_MORE_DATA && pLstn->pSrv->bEmitMsgOnOpen) {
|
|
LogError(0, NO_ERRCODE, "imptcp: connection could not be established with host: %s", propGetSzStr(*peerName));
|
|
}
|
|
- STATSCOUNTER_INC(pLstn->ctrSessOpenErr, pThis->pLstn->mutCtrSessOpenErr);
|
|
+ STATSCOUNTER_INC(pLstn->ctrSessOpenErr, pLstn->mutCtrSessOpenErr);
|
|
/* the close may be redundant, but that doesn't hurt... */
|
|
if(iNewSock != -1)
|
|
close(iNewSock);
|