Changeset 3bd2f17 for protocols


Ignore:
Timestamp:
2011-11-25T12:16:05Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
c77406a, c7b94ef
Parents:
693ff09
Message:

msn_soap_debug_print may get called with NULL pointers. Pay attention.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/soap.c

    r693ff09 r3bd2f17  
    215215                return;
    216216       
    217         if( ( s = strstr( headers, "\r\n\r\n" ) ) )
    218                 st = write( 1, headers, s - headers + 4 );
    219         else
    220                 st = write( 1, headers, strlen( headers ) );
     217        if( headers )
     218        {
     219                if( ( s = strstr( headers, "\r\n\r\n" ) ) )
     220                        st = write( 1, headers, s - headers + 4 );
     221                else
     222                        st = write( 1, headers, strlen( headers ) );
     223        }
    221224       
    222225#ifdef DEBUG
     226        if( payload )
    223227        {
    224228                struct xt_node *xt = xt_from_string( payload );
Note: See TracChangeset for help on using the changeset viewer.