Changeset 1236

Show
Ignore:
Timestamp:
05/24/07 16:16:48 (5 years ago)
Author:
benoitg
Message:
  • wdctl_thread.c: Fix #324, again. Credit goes to Medea, I misunderstood his instructons.
  • From David Bird <david@…> libhttpd/: Fix #266 - don't process query string parameters and keep them in that request.path.
Location:
trunk/wifidog
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog/ChangeLog

    r1227 r1236  
    11# $Id$ 
     22007-05-24 Benoit Gr�goire  <bock@step.polymtl.ca> 
     3        * wdctl_thread.c:  Fix #324, again.  Credit goes to Medea, I misunderstood his instructons. 
     4        * From David Bird <david@coova.com> libhttpd/: Fix #266 - don't process query string parameters and keep them in that request.path. 
     5 
    262007-05-18 Benoit Gr�goire  <bock@step.polymtl.ca> 
    37        * wdctl_thread.c:  Fix #324 
  • trunk/wifidog/libhttpd/api.c

    r290 r1236  
    572572        } 
    573573 
     574 
     575#if 0 
     576        /* XXX: For WifiDog, we do not need to process any of the  
     577           post or query string parameters. So, lets keep the GET variables 
     578           in the request.path too! 
     579        */ 
    574580        /* 
    575581        ** Process and POST data 
    576582        */ 
    577 #if 0 
    578583        if (r->request.contentLength > 0) 
    579584        { 
     
    583588                 
    584589        } 
    585 #endif 
    586590         
    587591        /* 
     
    595599                _httpd_storeData(r, cp); 
    596600        } 
     601#endif 
     602 
    597603        return(0); 
    598604} 
  • trunk/wifidog/libhttpd/httpd.h

    r274 r1236  
    9999                authLength; 
    100100        char    path[HTTP_MAX_URL], 
    101                 host[HTTP_MAX_URL], /* acv@acv.ca/wifidog: Added decoding 
     101                host[HTTP_MAX_URL], /* acv@acv.ca/wifidog: Added decoding 
    102102                                       of host: header if present. */ 
     103                ifModified[HTTP_MAX_URL]; 
     104#if(0) 
    103105                userAgent[HTTP_MAX_URL], 
    104106                referer[HTTP_MAX_URL], 
    105                 ifModified[HTTP_MAX_URL], 
    106107                contentType[HTTP_MAX_URL], 
    107108                authUser[HTTP_MAX_AUTH], 
    108109                authPassword[HTTP_MAX_AUTH]; 
     110#endif 
    109111} httpReq; 
    110112 
  • trunk/wifidog/src/fw_iptables.c

    r1162 r1236  
    277277            /* TCPMSS rule for PPPoE */ 
    278278                        iptables_do_command("-t filter -A " TABLE_WIFIDOG_WIFI_TO_INTERNET " -m state --state INVALID -j DROP"); 
    279                         iptables_do_command("-t filter -A " TABLE_WIFIDOG_WIFI_TO_INTERNET " -m state --state RELATED,ESTABLISHED -j ACCEPT"); 
     279 
     280                        /* XXX: Why this? it means that connections setup after authentication 
     281                           stay open even after the connection is done...  
     282                           iptables_do_command("-t filter -A " TABLE_WIFIDOG_WIFI_TO_INTERNET " -m state --state RELATED,ESTABLISHED -j ACCEPT");*/ 
     283 
     284 
    280285            if (ext_interface != NULL) { 
    281286                            iptables_do_command("-t filter -A " TABLE_WIFIDOG_WIFI_TO_INTERNET " -i %s -m state --state NEW,INVALID -j DROP", ext_interface); 
  • trunk/wifidog/src/wdctl_thread.c

    r1227 r1236  
    123123 
    124124        while (1) { 
    125                 memset(&sa_un, 0, sizeof(sa_un)); 
     125                len = sizeof(sa_un);  
     126                memset(&sa_un, 0, len); 
    126127                if ((fd = accept(sock, (struct sockaddr *)&sa_un, &len)) == -1){ 
    127128                        debug(LOG_ERR, "Accept failed on control socket: %s",