Changeset 3876


Ignore:
Timestamp:
Oct 31, 2011 10:27:12 AM (8 years ago)
Author:
ming
Message:

Fixed #1408: Failed to authenticate to TURN client due to REALM attribute padding

Location:
pjproject/branches/1.x
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x

  • pjproject/branches/1.x/pjnath/src/pjnath/stun_session.c

    r3553 r3876  
    354354        if (arealm) { 
    355355            pj_strdup(sess->pool, &sess->server_realm, &arealm->value); 
     356            while (sess->server_realm.slen && 
     357                    !sess->server_realm.ptr[sess->server_realm.slen-1]) 
     358            { 
     359                --sess->server_realm.slen; 
     360            } 
    356361        } 
    357362 
Note: See TracChangeset for help on using the changeset viewer.