Navigation


Changeset 704:289632905e19 in freeDiameter


Ignore:
Timestamp:
Jan 25, 2011, 4:34:27 PM (13 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Added new sanity check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdproto/messages.c

    r690 r704  
    135135#define _M(_x) ((struct msg *)(_x))
    136136/* Check the type and eyecatcher */
    137 #define CHECK_MSG(_x) ((_C(_x)->type == MSG_MSG) && (_M(_x)->msg_eyec == MSG_MSG_EYEC))
     137#define CHECK_MSG(_x) ((_x) && (_C(_x)->type == MSG_MSG) && (_M(_x)->msg_eyec == MSG_MSG_EYEC))
    138138
    139139#define VALIDATE_OBJ(_x) ( (CHECK_MSG(_x)) || (CHECK_AVP(_x)) )
Note: See TracChangeset for help on using the changeset viewer.