diff libfreeDiameter/messages.c @ 100:05ea77b86f53

Fix invalid flag
author Sebastien Decugis <sdecugis@nict.go.jp>
date Tue, 08 Dec 2009 11:23:15 +0900
parents 2c9444152e4b
children 6a294d977878
line wrap: on
line diff
--- a/libfreeDiameter/messages.c	Tue Dec 08 11:15:02 2009 +0900
+++ b/libfreeDiameter/messages.c	Tue Dec 08 11:23:15 2009 +0900
@@ -1004,7 +1004,7 @@
 	
 	/* Check the parameters */
 	CHECK_PARAMS( CHECK_MSG(msg) && anscb );
-	CHECK_PARAMS( ! (msg->msg_public.msg_flags & CMD_FLAG_REQUEST) );
+	CHECK_PARAMS( msg->msg_public.msg_flags & CMD_FLAG_REQUEST ); /* we associate with requests only */
 	CHECK_PARAMS( msg->msg_cb.fct == NULL ); /* No cb is already registered */
 	
 	/* Associate callback and data with the message, if any */
"Welcome to our mercurial repository"