when the callback function was expecting a clientHttpRequest.
/*
- * $Id: client_side.cc,v 1.228 1998/03/16 21:59:55 wessels Exp $
+ * $Id: client_side.cc,v 1.229 1998/03/17 00:38:52 wessels Exp $
*
* DEBUG: section 33 Client-side Routines
* AUTHOR: Duane Wessels
ConnStateData *conn = http->conn;
char *browser;
if (Config.onoff.ident_lookup && conn->ident.state == IDENT_NONE) {
- identStart(-1, conn, clientAccessCheck);
+ identStart(-1, conn, clientAccessCheck, http);
return;
}
if (checkAccelOnly(http)) {
/*
- * $Id: ident.cc,v 1.37 1997/11/12 00:08:54 wessels Exp $
+ * $Id: ident.cc,v 1.38 1998/03/17 00:38:53 wessels Exp $
*
* DEBUG: section 30 Ident (RFC 931)
* AUTHOR: Duane Wessels
/* start a TCP connection to the peer host on port 113 */
void
-identStart(int fd, ConnStateData * connState, IDCB * callback)
+identStart(int fd, ConnStateData * connState, IDCB * callback, void *data)
{
connState->ident.callback = callback;
+ connState->ident.callback_data = data;
connState->ident.state = IDENT_PENDING;
if (fd < 0) {
fd = comm_open(SOCK_STREAM,
{
connState->ident.state = IDENT_DONE;
if (connState->ident.callback)
- connState->ident.callback(connState);
+ connState->ident.callback(connState->ident.callback_data);
}
extern void sslStart(int fd, const char *, request_t *, size_t * sz);
extern void waisStart(request_t *, StoreEntry *);
extern void passStart(int, const char *, request_t *, size_t *);
-extern void identStart(int, ConnStateData *, IDCB * callback);
+extern void identStart(int, ConnStateData *, IDCB * callback, void *);
extern void statInit(void);
extern void pconnHistCount(int, int);
char ident[ICP_IDENT_SZ];
IDCB *callback;
int state;
+ void *callback_data;
} ident;
CommWriteStateData *commWriteState;
int nrequests;