summaryrefslogtreecommitdiff
path: root/opentracker.c
diff options
context:
space:
mode:
authorerdgeist <>2009-01-16 04:17:22 +0000
committererdgeist <>2009-01-16 04:17:22 +0000
commit2d3718151d4f4248618f5c9f3ea5765f91f39eef (patch)
tree324c711cc571ac05783ce90cc574d6ac107e1cbe /opentracker.c
parent0b875273d4f17f36b478ab0a524531a97b88e08b (diff)
Fix a pointer arithmetic issue leading to incorrect peer data being copied. Allocate correct size for debugbuffer. Expect exact values on find keywords, not only prefix match.
Diffstat (limited to 'opentracker.c')
-rw-r--r--opentracker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/opentracker.c b/opentracker.c
index fd1698a..6cca576 100644
--- a/opentracker.c
+++ b/opentracker.c
@@ -201,7 +201,7 @@ static void server_mainloop( ) {
201 ws.inbuf = malloc( G_INBUF_SIZE ); 201 ws.inbuf = malloc( G_INBUF_SIZE );
202 ws.outbuf = malloc( G_OUTBUF_SIZE ); 202 ws.outbuf = malloc( G_OUTBUF_SIZE );
203#ifdef _DEBUG_HTTPERROR 203#ifdef _DEBUG_HTTPERROR
204 ws.debugbuf= malloc( G_INBUF_SIZE ); 204 ws.debugbuf= malloc( G_DEBUGBUF_SIZE );
205#endif 205#endif
206 if( !ws.inbuf || !ws.outbuf ) 206 if( !ws.inbuf || !ws.outbuf )
207 panic( "Initializing worker failed" ); 207 panic( "Initializing worker failed" );