Changeset 253

Show
Ignore:
Timestamp:
10/28/04 12:27:25 (9 years ago)
Author:
alexcv
Message:

httpd URL now parsed with variable size buffers.

Location:
trunk/wifidog
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog/ChangeLog

    r252 r253  
    33        * multiple files: Implemented a FirewallRule config command, it 
    44          doesn't actually do anything yet. 
    5         * libhttpd: #if 0'd out lots of request parsing code 
     5        * libhttpd: #if 0'd out lots of request parsing code. 
     6        * libhttpd: changed URL parsing. 
    67 
    782004-10-27 Philippe April <philippe@philippeapril.com> 
  • trunk/wifidog/libhttpd/protocol.c

    r87 r253  
    337337        char    *cp, 
    338338                *cp2, 
    339                 var[50], 
     339                *var, 
    340340                *val, 
    341341                *tmpVal; 
     
    344344                return; 
    345345 
     346        var = (char *)malloc(strlen(query)); 
     347         
    346348        cp = query; 
    347349        cp2 = var; 
    348         bzero(var,sizeof(var)); 
     350        bzero(var, strlen(query)); 
    349351        val = NULL; 
    350352        while(*cp) 
     
    388390        tmpVal = _httpd_unescape(val); 
    389391        httpdAddVariable(server, var, tmpVal); 
     392        free(var); 
    390393} 
    391394