Navigation


Changeset 1009:e22434c66126 in freeDiameter for libfdproto


Ignore:
Timestamp:
Mar 25, 2013, 10:35:55 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Be more restrictive on fd_msg_send() called with answer messages, the function now rejects the parameters if an answer callback is provided

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdproto/messages.c

    r1005 r1009  
    10381038       
    10391039        if (! (msg->msg_public.msg_flags & CMD_FLAG_REQUEST ))
    1040                 return 0; /* we associate with requests only */
     1040                return anscb ? EINVAL : 0; /* we associate with requests only */
    10411041       
    10421042        CHECK_PARAMS( (anscb == NULL) || (msg->msg_cb.fct == NULL) ); /* We are not overwritting a cb */
Note: See TracChangeset for help on using the changeset viewer.