Navigation


Changes in / [1549:19ab8ac08a36:1548:edfb2b662b91] in freeDiameter


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdproto/messages.c

    r1549 r1539  
    19471947                }
    19481948               
    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 
    19571949                /* Check there is enough remaining data in the buffer */
    19581950                if ( (avp->avp_public.avp_len > GETAVPHDRSZ(avp->avp_public.avp_flags))
     
    20001992                TRACE_DEBUG(INFO, "Truncated message (%zd / %d)", buflen, msglen );
    20011993                return EBADMSG;
    2002         }
    2003         if ( msglen < GETMSGHDRSZ() ) {
    2004                 TRACE_DEBUG(INFO, "Invalid message length (%d)", msglen );
    2005                 return EBADMSG;
    20061994        }
    20071995       
Note: See TracChangeset for help on using the changeset viewer.