Mercurial > hg > freeDiameter
diff 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 |
line wrap: on
line diff
--- a/freeDiameter/messages.c Tue Dec 08 11:43:04 2009 +0900 +++ b/freeDiameter/messages.c Tue Dec 08 13:09:03 2009 +0900 @@ -267,7 +267,9 @@ CHECK_PARAMS( pmsg ); /* Save the callback in the message */ - CHECK_FCT( fd_msg_anscb_associate( *pmsg, anscb, data ) ); + if (anscb) { + CHECK_FCT( fd_msg_anscb_associate( *pmsg, anscb, data ) ); + } /* Post the message in the outgoing queue */ CHECK_FCT( fd_fifo_post(fd_g_outgoing, pmsg) );