changeset 893:8187364e39ea

Fix answers sending
author Sebastien Decugis <sdecugis@freediameter.net>
date Fri, 23 Nov 2012 21:22:54 +0100
parents b2e8f1a3ef76
children 43fb27a9037f
files libfdproto/messages.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libfdproto/messages.c	Mon Nov 19 08:58:40 2012 +0100
+++ b/libfdproto/messages.c	Fri Nov 23 21:22:54 2012 +0100
@@ -975,7 +975,10 @@
 	
 	/* Check the parameters */
 	CHECK_PARAMS( CHECK_MSG(msg) );
-	CHECK_PARAMS( msg->msg_public.msg_flags & CMD_FLAG_REQUEST ); /* we associate with requests only */
+	
+	if (! (msg->msg_public.msg_flags & CMD_FLAG_REQUEST ))
+		return 0; /* we associate with requests only */
+	
 	CHECK_PARAMS( (anscb == NULL) || (msg->msg_cb.fct == NULL) ); /* We are not overwritting a cb */
 	
 	/* Associate callback and data with the message, if any */
"Welcome to our mercurial repository"