Navigation


Changeset 1172:83d55d26ae80 in freeDiameter for libfdproto


Ignore:
Timestamp:
Jun 3, 2013, 11:28:33 AM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Hand the case of invalid objects in the msg_dump functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdproto/messages.c

    r1125 r1172  
    737737        FD_DUMP_HANDLE_OFFSET();
    738738               
     739        if (!VALIDATE_OBJ(obj)) {
     740                CHECK_MALLOC_DO( fd_dump_extend( FD_DUMP_STD_PARAMS, "INVALID MESSAGE OR AVP @%p"), return NULL);
     741                return *buf;
     742        }
     743       
    739744        if (force_parsing) {
    740745                (void) fd_msg_parse_dict(obj, dict, NULL);
     
    752757                default:
    753758                        ASSERT(0);
     759                        free(*buf):
     760                        *buf = NULL;
     761                        return NULL;
    754762        }
    755763               
Note: See TracChangeset for help on using the changeset viewer.