Ignore:
Timestamp:
Jan 27, 2016 5:42:20 AM (8 years ago)
Author:
riza
Message:

Misc (Re #1882): When server sends blank realm on the Authentication challanges, the stack doesn't include the realm param.
And hence, the server will reject the request. This patch will include the blank realm on the next request.
Thanks to Keith Hanaway for the report.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_auth_msg.c

    r4537 r5237  
    7272     
    7373    copy_advance_pair_quote_cond(buf, "username=", 9, cred->username, '"', '"'); 
    74     copy_advance_pair_quote_cond(buf, ", realm=", 8, cred->realm, '"', '"'); 
     74    copy_advance_pair_quote_cond_always(buf, ", realm=", 8, cred->realm, '"',  
     75                                        '"'); 
    7576    copy_advance_pair_quote(buf, ", nonce=", 8, cred->nonce, '"', '"'); 
    7677    copy_advance_pair_quote_cond(buf, ", uri=", 6, cred->uri, '"', '"'); 
Note: See TracChangeset for help on using the changeset viewer.