Changeset f9789d4 for lib


Ignore:
Timestamp:
2011-12-20T16:42:17Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
68286eb
Parents:
4b53c65
Message:

NULL-checking in rfc822_get_header() and OAuth response handling.

Location:
lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lib/misc.c

    r4b53c65 rf9789d4  
    735735        char *ret;
    736736       
     737        if( text == NULL )
     738                return NULL;
     739       
    737740        if( len == 0 )
    738741                len = strlen( text );
     
    779782        }
    780783       
    781         return( NULL );
    782 }
     784        return NULL;
     785}
  • lib/oauth2.c

    r4b53c65 rf9789d4  
    113113        {
    114114        }
    115         else if( strstr( content_type, "application/json" ) )
     115        else if( content_type && strstr( content_type, "application/json" ) )
    116116        {
    117117                atoken = oauth2_json_dumb_get( req->reply_body, "access_token" );
Note: See TracChangeset for help on using the changeset viewer.