Changeset 1295 for pjproject


Ignore:
Timestamp:
May 23, 2007 2:23:48 PM (18 years ago)
Author:
bennylp
Message:

Fixed ticket #294: Uninitialized memory read reported by Purify in SIP authentication

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/pjproject-0.5-stable/pjsip/src/pjsip/sip_auth_client.c

    r974 r1295  
    801801 
    802802        /* Find WWW-Authenticate or Proxy-Authenticate header. */ 
    803         while (hdr->type != PJSIP_H_WWW_AUTHENTICATE && 
    804                hdr->type != PJSIP_H_PROXY_AUTHENTICATE && 
    805                hdr != &rdata->msg_info.msg->hdr) 
     803        while (hdr != &rdata->msg_info.msg->hdr && 
     804               hdr->type != PJSIP_H_WWW_AUTHENTICATE && 
     805               hdr->type != PJSIP_H_PROXY_AUTHENTICATE) 
    806806        { 
    807807            hdr = hdr->next; 
Note: See TracChangeset for help on using the changeset viewer.