Navigation


Changeset 712:886e935f7513 in freeDiameter for libfdcore/routing_dispatch.c


Ignore:
Timestamp:
Feb 15, 2011, 10:51:31 AM (13 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Fixed decorated NAI handing in case of messages without User-Name AVP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/routing_dispatch.c

    r706 r712  
    679679                        /* test for decorated NAI  (RFC5729 section 4.4) */
    680680                        /* Handle the decorated NAI */
    681                         CHECK_FCT_DO( process_decorated_NAI(&is_nai, un_val, dr_val),
    682                                 {
    683                                         /* If the process failed, we assume it is because of the AVP format */
    684                                         CHECK_FCT( return_error( pmsg, "DIAMETER_INVALID_AVP_VALUE", "Failed to process decorated NAI", un) );
    685                                         return 0;
    686                                 } );
     681                        if (un_val) {
     682                                CHECK_FCT_DO( process_decorated_NAI(&is_nai, un_val, dr_val),
     683                                        {
     684                                                /* If the process failed, we assume it is because of the AVP format */
     685                                                CHECK_FCT( return_error( pmsg, "DIAMETER_INVALID_AVP_VALUE", "Failed to process decorated NAI", un) );
     686                                                return 0;
     687                                        } );
     688                        }
    687689                               
    688690                        if (is_nai) {
Note: See TracChangeset for help on using the changeset viewer.