comparison freeDiameter/messages.c @ 103:215eeeeb0bd3

Fix invalid call
author Sebastien Decugis <sdecugis@nict.go.jp>
date Tue, 08 Dec 2009 13:09:03 +0900
parents a58f0757c06a
children 5b3868944e2b
comparison
equal deleted inserted replaced
102:69e2b33ee817 103:215eeeeb0bd3
265 { 265 {
266 TRACE_ENTRY("%p %p %p", pmsg, anscb, data); 266 TRACE_ENTRY("%p %p %p", pmsg, anscb, data);
267 CHECK_PARAMS( pmsg ); 267 CHECK_PARAMS( pmsg );
268 268
269 /* Save the callback in the message */ 269 /* Save the callback in the message */
270 CHECK_FCT( fd_msg_anscb_associate( *pmsg, anscb, data ) ); 270 if (anscb) {
271 CHECK_FCT( fd_msg_anscb_associate( *pmsg, anscb, data ) );
272 }
271 273
272 /* Post the message in the outgoing queue */ 274 /* Post the message in the outgoing queue */
273 CHECK_FCT( fd_fifo_post(fd_g_outgoing, pmsg) ); 275 CHECK_FCT( fd_fifo_post(fd_g_outgoing, pmsg) );
274 276
275 return 0; 277 return 0;
"Welcome to our mercurial repository"