Changeset 3843


Ignore:
Timestamp:
Oct 24, 2011 2:13:35 PM (8 years ago)
Author:
bennylp
Message:

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

File:
1 edited

Legend:

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

    r3753 r3843  
    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.