Changeset 2356 for pjproject/trunk


Ignore:
Timestamp:
Oct 23, 2008 11:31:11 AM (16 years ago)
Author:
bennylp
Message:

Ticket #667: Padding issue when the old/RFC 3489 STUN client is communicating with new/STUNbis STUN server

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib-util/src/pjlib-util/stun_simple.c

    r1239 r2356  
    2424#include <pj/os.h> 
    2525 
    26 #define THIS_FILE   "stun.c" 
     26#define THIS_FILE   "stun_simple.c" 
    2727 
    2828PJ_DEF(pj_status_t) pjstun_create_bind_req( pj_pool_t *pool,  
     
    8989        *attr = (pjstun_attr_hdr*)p_attr; 
    9090        len = pj_ntohs((pj_uint16_t) ((*attr)->length)) + sizeof(pjstun_attr_hdr); 
     91        len = (len + 3) & ~3; 
    9192 
    9293        if (msg_len < len) { 
Note: See TracChangeset for help on using the changeset viewer.