Ignore:
Timestamp:
2010-08-12T12:56:41+02:00 (6 years ago)
Author:
jow
Message:

[package] uhttpd: fix segmentation fault triggered by invalid header line

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/uhttpd/src/uhttpd.c

    r22602 r22607  
    267267 
    268268                /* check version */ 
    269                 if( strcmp(version, "HTTP/0.9") && strcmp(version, "HTTP/1.0") && strcmp(version, "HTTP/1.1") ) 
     269                if( (version == NULL) || (strcmp(version, "HTTP/0.9") && 
     270                    strcmp(version, "HTTP/1.0") && strcmp(version, "HTTP/1.1")) ) 
    270271                { 
    271272                        /* unsupported version */ 
Note: See TracChangeset for help on using the changeset viewer.