Changeset 2916 for pjproject


Ignore:
Timestamp:
Oct 1, 2009 6:06:01 AM (15 years ago)
Author:
bennylp
Message:

Ticket #960: STUN compatibility problem with RFC 3489 servers (in encoding SERVER-NAME or SOFTWARE attribute)

  • now always set string attribute's length to 4-bytes aligned
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/src/pjnath/stun_msg.c

    r2691 r2916  
    12351235 
    12361236    PUTVAL16H(buf, 0, ca->hdr.type); 
    1237     PUTVAL16H(buf, 2, (pj_uint16_t)ca->value.slen); 
    1238      
     1237 
     1238    /* Set the length to be 4-bytes aligned so that we can 
     1239     * communicate with RFC 3489 endpoints 
     1240     */ 
     1241    PUTVAL16H(buf, 2, (pj_uint16_t)((ca->value.slen + 3) & (~3))); 
    12391242 
    12401243    /* Copy the string */ 
Note: See TracChangeset for help on using the changeset viewer.