Changeset 1294


Ignore:
Timestamp:
May 23, 2007 2:21:53 PM (17 years ago)
Author:
bennylp
Message:

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

File:
1 edited

Legend:

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

    r1240 r1294  
    804804 
    805805        /* Find WWW-Authenticate or Proxy-Authenticate header. */ 
    806         while (hdr->type != PJSIP_H_WWW_AUTHENTICATE && 
    807                hdr->type != PJSIP_H_PROXY_AUTHENTICATE && 
    808                hdr != &rdata->msg_info.msg->hdr) 
     806        while (hdr != &rdata->msg_info.msg->hdr && 
     807               hdr->type != PJSIP_H_WWW_AUTHENTICATE && 
     808               hdr->type != PJSIP_H_PROXY_AUTHENTICATE) 
    809809        { 
    810810            hdr = hdr->next; 
Note: See TracChangeset for help on using the changeset viewer.