changeset 450:f6e85a0694eb

Fix a possible race condition
author Sebastien Decugis <sdecugis@nict.go.jp>
date Thu, 29 Jul 2010 14:29:31 +0900
parents c5e37091553a
children 4395961aad27
files libfreeDiameter/fifo.c
diffstat 1 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libfreeDiameter/fifo.c	Thu Jul 29 14:07:30 2010 +0900
+++ b/libfreeDiameter/fifo.c	Thu Jul 29 14:29:31 2010 +0900
@@ -412,12 +412,6 @@
 	struct fifo * q = (struct fifo *)queue;
 	TRACE_ENTRY( "%p", queue );
 	
-	/* Check the parameter */
-	if ( ! CHECK_FIFO( q )) {
-		TRACE_DEBUG(INFO, "Invalid queue, skipping handler");
-		return;
-	}
-	
 	/* The thread has been cancelled, therefore it does not wait on the queue anymore */
 	q->thrs--;
 	
"Welcome to our mercurial repository"