Changes in libfdproto/messages.c [1549:19ab8ac08a36:1539:d25ce064c667] in freeDiameter
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdproto/messages.c
r1549 r1539 1947 1947 } 1948 1948 1949 /* Check the length is valid */1950 if ( avp->avp_public.avp_len < GETAVPHDRSZ(avp->avp_public.avp_flags) ) {1951 TRACE_DEBUG(INFO, "Invalid AVP size %d",1952 avp->avp_public.avp_len);1953 free(avp);1954 return EBADMSG;1955 }1956 1957 1949 /* Check there is enough remaining data in the buffer */ 1958 1950 if ( (avp->avp_public.avp_len > GETAVPHDRSZ(avp->avp_public.avp_flags)) … … 2000 1992 TRACE_DEBUG(INFO, "Truncated message (%zd / %d)", buflen, msglen ); 2001 1993 return EBADMSG; 2002 }2003 if ( msglen < GETMSGHDRSZ() ) {2004 TRACE_DEBUG(INFO, "Invalid message length (%d)", msglen );2005 return EBADMSG;2006 1994 } 2007 1995
Note: See TracChangeset
for help on using the changeset viewer.