From 26413c6ec0902d977728de2da011321d80f1cb10 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Tue, 16 Nov 2004 05:01:25 +0000
Subject: [PATCH] Bugfix: use original socket descriptor in call to
 client_off() rather than -1.

---
 src/sbbs3/websrvr.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sbbs3/websrvr.c b/src/sbbs3/websrvr.c
index b1c6f186f0..4f9f997611 100644
--- a/src/sbbs3/websrvr.c
+++ b/src/sbbs3/websrvr.c
@@ -2716,7 +2716,7 @@ void http_session_thread(void* arg)
 	SAFECOPY(session.client.host,session.host_name);
 	session.client.port=ntohs(session.addr.sin_port);
 	session.client.time=time(NULL);
-	session.client.protocol="http";
+	session.client.protocol="HTTP";
 	session.client.user=session.username;
 	session.client.size=sizeof(session.client);
 	client_on(session.socket, &session.client, /* update existing client record? */FALSE);
@@ -2784,7 +2784,7 @@ void http_session_thread(void* arg)
 
 	active_clients--;
 	update_clients();
-	client_off(session.socket);
+	client_off(socket);
 	if(startup!=NULL && startup->socket_open!=NULL)
 		startup->socket_open(startup->cbdata,FALSE);
 
-- 
GitLab