Navigation


Changeset 754:e02254d7d01b in freeDiameter


Ignore:
Timestamp:
Sep 24, 2011, 8:36:01 PM (13 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Fix handling of message when no dispatch cb handled the message, to conform to documentation (thanks Zach for report)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/routing_dispatch.c

    r740 r754  
    492492                switch ( action ) {
    493493                        case DISP_ACT_CONT:
    494                                 /* No callback has handled the message, let's reply with a generic error */
     494                                /* No callback has handled the message, let's reply with a generic error or relay it */
     495                                if (!fd_g_config->cnf_flags.no_fwd) {
     496                                        /* requeue to fd_g_outgoing */
     497                                        CHECK_FCT( fd_fifo_post(fd_g_outgoing, pmsg) );
     498                                        break;
     499                                }
     500                                /* We don't relay => reply error */
    495501                                em = "The message was not handled by any extension callback";
    496502                                ec = "DIAMETER_COMMAND_UNSUPPORTED";
Note: See TracChangeset for help on using the changeset viewer.